Changeset 10:ed3561cff72c
- Timestamp:
- 07/10/08 15:36:10 (5 years ago)
- Branch:
- default
- Files:
-
- 1 modified
-
examples/demo.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
examples/demo.py
r8 r10 7 7 @property 8 8 def total(self): 9 return reduce(operator.add, (l['amount'] for l in self['lines']), 0)9 return sum(l['amount'] for l in self['lines']) 10 10 11 11 @property
