From 76be84320101d4a931c3b67aaf193b2503e36a71 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 24 Feb 2009 22:13:46 -0400 Subject: [PATCH] A slight improvement to the Python bindings --- src/py_scope.cc | 4 ++-- 1 file 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