summaryrefslogtreecommitdiff
path: root/amounts.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-07 20:03:01 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-07 20:03:01 -0400
commita4c5380a7f0abc2ab0bdc9347bba967a113ad696 (patch)
tree3ae4fd4c5987f4c960acb6c8aa49b98bb371b8d6 /amounts.py
parent6126d48e279e04aaa99cc7a17cda7a9803597ac2 (diff)
downloadfork-ledger-a4c5380a7f0abc2ab0bdc9347bba967a113ad696.tar.gz
fork-ledger-a4c5380a7f0abc2ab0bdc9347bba967a113ad696.tar.bz2
fork-ledger-a4c5380a7f0abc2ab0bdc9347bba967a113ad696.zip
some fixes to value_t in python; still more work to go
Diffstat (limited to 'amounts.py')
-rw-r--r--amounts.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/amounts.py b/amounts.py
index f3a58986..aa70086c 100644
--- a/amounts.py
+++ b/amounts.py
@@ -8,8 +8,11 @@ print x
y = Amount ("$1000.45")
print x + y
+y = Amount ("$1000.45")
+print x * y
+
z = Value ("$1000.45")
-print y + z
+#print z + Value(y)
-z += x
+z += Value(x)
print z