A slight improvement to the Python bindings

This commit is contained in:
John Wiegley 2009-02-24 22:13:46 -04:00
parent a364b1d4ac
commit 76be843201

View file

@ -48,9 +48,9 @@ namespace {
return scope.lookup(name); 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 struct scope_wrapper : public scope_t