comparison Python/pythonrun.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 e0464e7115ca
children cd397266dc1c
comparison
equal deleted inserted replaced
1288:9fed5726a36d 1289:4d292c7857d4
318 object *v; 318 object *v;
319 co = compile(n, filename); 319 co = compile(n, filename);
320 freetree(n); 320 freetree(n);
321 if (co == NULL) 321 if (co == NULL)
322 return NULL; 322 return NULL;
323 v = eval_code(co, globals, locals, (object *)NULL); 323 v = eval_code(co, globals, locals, (object *)NULL, (object *)NULL);
324 DECREF(co); 324 DECREF(co);
325 return v; 325 return v;
326 } 326 }
327 327
328 object * 328 object *