From e0b108ff3a64ae76d9fa420b35e35f77f30a54e0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 8 Feb 2009 21:17:23 -0400 Subject: Attribute lookup on a Value object which is a Scope now searches the scope. --- tools/sample.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tools/sample.py') diff --git a/tools/sample.py b/tools/sample.py index e32ebbcd..2d226b12 100644 --- a/tools/sample.py +++ b/tools/sample.py @@ -1,7 +1,5 @@ import ledger -def myvalue(incoming): - x = ledger.Amount("$123.12") - print x - print x * 1 - return x * 1 +def get_amount(item): + print "I found an amount:", item.amount() + return 123 -- cgit v1.2.3