diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-08 04:13:02 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-08 04:13:02 -0400 |
commit | 3d4259e6d0ed01425ba9c35f3866fc298631c9e8 (patch) | |
tree | 84db5aa52f14aa9d601449b6627891fd21cae42c /amounts.py | |
parent | 842359474e36d8406305b874e82c12594dbc154c (diff) | |
download | fork-ledger-3d4259e6d0ed01425ba9c35f3866fc298631c9e8.tar.gz fork-ledger-3d4259e6d0ed01425ba9c35f3866fc298631c9e8.tar.bz2 fork-ledger-3d4259e6d0ed01425ba9c35f3866fc298631c9e8.zip |
balances and values can now be iterated, to get at the component amounts
Diffstat (limited to 'amounts.py')
-rw-r--r-- | amounts.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -16,3 +16,10 @@ z = Value ("$1000.45") z += Value(x) print z + +bal = Balance (x) +bal += Amount ("100.8 DM") + +print "balance:", bal +for amt in bal: + print " amount:", amt |