Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 1293:ac3c80abbf43 legacy-trunk
* classobject.c: in instance_getattr, don't make a method out of a
function found as instance data.
* socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite
argument parsing in send/recv.
* More changes related to access (terminology change: owner instead of
class; allow any object as owner; local/global variables are owned
by their dictionary, only class/instance data is owned by the class;
"from...import *" now only imports objects with public access; etc.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 25 May 1993 09:38:27 +0000 |
| parents | 4d292c7857d4 |
| children | e149c77d173c |
line wrap: on
line diff
--- a/Python/import.c Mon May 24 14:19:37 1993 +0000 +++ b/Python/import.c Tue May 25 09:38:27 1993 +0000 @@ -303,7 +303,7 @@ } } } - v = eval_code(co, d, d, (object *)NULL, (object *)NULL); + v = eval_code(co, d, d, d, (object *)NULL); DECREF(co); return v; } @@ -422,7 +422,7 @@ return -1; if ((m = add_module(name)) == NULL || (d = getmoduledict(m)) == NULL || - (v = eval_code(co, d, d, (object*)NULL, (object*)NULL)) == NULL) { + (v = eval_code(co, d, d, d, (object*)NULL)) == NULL) { DECREF(co); return -1; }
