summaryrefslogtreecommitdiff
path: root/src/py_scope.cc
diff options
context:
space:
mode:
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