Set the scope context in Scope.__getattr__(attr)

This commit is contained in:
John Wiegley 2009-02-24 20:01:46 -04:00
parent 0814c5a23f
commit 45da776f96

View file

@ -50,7 +50,7 @@ namespace {
expr_t py_scope_getattr(scope_t& scope, const string& name)
{
return scope.lookup(name);
return expr_t(scope.lookup(name), &scope);
}
struct scope_wrapper : public scope_t