mirror of
https://github.com/python/cpython.git
synced 2025-01-23 17:44:35 +08:00
Intern the strings "__builtins__".
This commit is contained in:
parent
c6d0670f1b
commit
b56933ed2e
@ -147,7 +147,7 @@ newframeobject(back, code, globals, locals, owner, nvalues, nblocks)
|
||||
frameobject *f;
|
||||
object *builtins;
|
||||
if (builtin_object == NULL) {
|
||||
builtin_object = newstringobject("__builtins__");
|
||||
builtin_object = PyString_InternFromString("__builtins__");
|
||||
if (builtin_object == NULL)
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user