mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Several optimizations and speed improvements.
cstubs: Use Matrix type instead of float[4][4].
This commit is contained in:
parent
a75d306e2b
commit
3bb8a05947
10 changed files with 216 additions and 63 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue