Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 1289:4d292c7857d4 legacy-trunk
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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 20 May 1993 14:24:46 +0000 |
| parents | 9fed5726a36d |
| children | 6ee380349c84 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Wed May 19 14:50:45 1993 +0000 +++ b/Python/bltinmodule.c Thu May 20 14:24:46 1993 +0000 @@ -212,7 +212,7 @@ } 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");
