diff pyikriam/example.py @ 160:7551342718b6

Refactory pyikriam with patterns. - Use dyna_prog, a dynamic programming decorator, to cache city objects. - fake_moz to emulate a mozilla browser.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 01 Nov 2008 21:29:51 +0800
parents 19d2a7b175b3
children 1507c2d16b35
line wrap: on
line diff
--- a/pyikriam/example.py	Sat Nov 01 16:38:56 2008 +0800
+++ b/pyikriam/example.py	Sat Nov 01 21:29:51 2008 +0800
@@ -3,4 +3,5 @@
 i = Ikariam()
 city = i.city(117261)
 city.sync()
-print 'gold is'+city.gold
+print 'gold is ' + city.gold
+