Mercurial > cpython-lru_cache-weakref
diff Objects/accessobject.c @ 1356:043da19302ef legacy-trunk
Several optimizations and speed improvements.
cstubs: Use Matrix type instead of float[4][4].
| author | Sjoerd Mullender <sjoerd@acm.org> |
|---|---|
| date | Fri, 22 Oct 1993 12:04:32 +0000 |
| parents | 716be765a79b |
| children | 1940892d2fe3 |
line wrap: on
line diff
--- a/Objects/accessobject.c Mon Oct 18 17:59:42 1993 +0000 +++ b/Objects/accessobject.c Fri Oct 22 12:04:32 1993 +0000 @@ -232,10 +232,11 @@ object *caller; { object *g; - if (caller != NULL && hasattr(caller, "__privileged__")) + static char privileged[] = "__privileged__"; + if (caller != NULL && hasattr(caller, privileged)) return 1; g = getglobals(); - if (g != NULL && dictlookup(g, "__privileged__")) + if (g != NULL && dictlookup(g, privileged)) return 1; return 0; }
