diff 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
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed May 19 14:50:45 1993 +0000
+++ b/Python/pythonrun.c	Thu May 20 14:24:46 1993 +0000
@@ -320,7 +320,7 @@
 	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;
 }