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/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/bltinmodule.c') diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 3d9504bedc..c2c29662b6 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -212,7 +212,7 @@ exec_eval(v, start) } if (is_codeobject(str)) return eval_code((codeobject *) str, globals, locals, - (object *)NULL); + (object *)NULL, (object *)NULL); s = getstringvalue(str); if (strlen(s) != getstringsize(str)) { err_setstr(ValueError, "embedded '\\0' in string arg"); -- cgit v1.2.1