From 81daa32c15cfa9f05eda037916cdbfd5b4323431 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 20 May 1993 14:24:46 +0000 Subject: 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. --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 3898d13af2..b85be921c0 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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; } -- cgit v1.2.1