mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
Access checks now work, at least for instance data (not for methods
yet). The class is now passed to eval_code and stored in the current frame. It is also stored in instance method objects. An "unbound" instance method is now returned when a function is retrieved through "classname.funcname", which when called passes the class to eval_code.
This commit is contained in:
+1
-1
@@ -320,7 +320,7 @@ eval_node(n, filename, globals, locals)
|
||||
freetree(n);
|
||||
if (co == NULL)
|
||||
return NULL;
|
||||
v = eval_code(co, globals, locals, (object *)NULL);
|
||||
v = eval_code(co, globals, locals, (object *)NULL, (object *)NULL);
|
||||
DECREF(co);
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user