summaryrefslogtreecommitdiff
path: root/src/py_scope.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-24 22:13:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-24 22:13:46 -0400
commit76be84320101d4a931c3b67aaf193b2503e36a71 (patch)
treef353a594035ccf3d96811fd6187acea62b767f85 /src/py_scope.cc
parenta364b1d4acd73f187302d9a1a37432a531ef62c5 (diff)
downloadfork-ledger-76be84320101d4a931c3b67aaf193b2503e36a71.tar.gz
fork-ledger-76be84320101d4a931c3b67aaf193b2503e36a71.tar.bz2
fork-ledger-76be84320101d4a931c3b67aaf193b2503e36a71.zip
A slight improvement to the Python bindings
Diffstat (limited to 'src/py_scope.cc')
-rw-r--r--src/py_scope.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/py_scope.cc b/src/py_scope.cc
index 6054e6a2..35fb1a7f 100644
--- a/src/py_scope.cc
+++ b/src/py_scope.cc
@@ -48,9 +48,9 @@ namespace {
return scope.lookup(name);
}
- expr_t py_scope_getattr(scope_t& scope, const string& name)
+ value_t py_scope_getattr(scope_t& scope, const string& name)
{
- return expr_t(scope.lookup(name), &scope);
+ return expr_t(scope.lookup(name)).calc(scope);
}
struct scope_wrapper : public scope_t