Mercurial > eagle-eye
comparison 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 |
comparison
equal
deleted
inserted
replaced
159:e2956846ee98 | 160:7551342718b6 |
---|---|
1 from __init__ import Ikariam | 1 from __init__ import Ikariam |
2 | 2 |
3 i = Ikariam() | 3 i = Ikariam() |
4 city = i.city(117261) | 4 city = i.city(117261) |
5 city.sync() | 5 city.sync() |
6 print 'gold is'+city.gold | 6 print 'gold is ' + city.gold |
7 |