diff options
author | Sjoerd Mullender <sjoerd@acm.org> | 1993-10-22 12:04:32 (GMT) |
---|---|---|
committer | Sjoerd Mullender <sjoerd@acm.org> | 1993-10-22 12:04:32 (GMT) |
commit | 3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e (patch) | |
tree | cb9c4f6b18f70822ade606f269fc043be542f5da /Objects/accessobject.c | |
parent | a75d306e2b799aa891666899ca973bec82b2362b (diff) | |
download | cpython-3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e.zip cpython-3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e.tar.gz cpython-3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e.tar.bz2 |
Several optimizations and speed improvements.
cstubs: Use Matrix type instead of float[4][4].
Diffstat (limited to 'Objects/accessobject.c')
-rw-r--r-- | Objects/accessobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/accessobject.c b/Objects/accessobject.c index 6a8981e..b2cd4ad 100644 --- a/Objects/accessobject.c +++ b/Objects/accessobject.c @@ -232,10 +232,11 @@ isprivileged(caller) 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; } |