summaryrefslogtreecommitdiff
path: root/sample.dat
diff options
context:
space:
mode:
Diffstat (limited to 'sample.dat')
-rw-r--r--sample.dat12
1 files changed, 11 insertions, 1 deletions
diff --git a/sample.dat b/sample.dat
index 335083d8..69379382 100644
--- a/sample.dat
+++ b/sample.dat
@@ -1,3 +1,14 @@
+;; If Python support is enabled, then the following code may be
+;; uncomment to demonstrate a rather useless example.
+
+; !python
+; from ledger import *
+; def foo(d, val):
+; return val + d.xact.amount
+; !end
+;
+; --value-expr 'foo'{$100}
+
2004/05/01 Checking balance
Assets:Checking $500.00
Equity:Opening Balances
@@ -9,4 +20,3 @@
2004/05/29 Restaurant
Expenses:Food $50.00
Liabilities:MasterCard
-