summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-18 07:58:41 (GMT)
committerGuido van Rossum <guido@python.org>1997-01-18 07:58:41 (GMT)
commitb56933ed2e1e2f921b8a20a6e8b9a9431a5cb447 (patch)
tree55c3151c1f89c2bd10a50075dd7595c5a2f5834b
parentc6d0670f1bc77c413892f6089bc20902a59f8f02 (diff)
downloadcpython-b56933ed2e1e2f921b8a20a6e8b9a9431a5cb447.zip
cpython-b56933ed2e1e2f921b8a20a6e8b9a9431a5cb447.tar.gz
cpython-b56933ed2e1e2f921b8a20a6e8b9a9431a5cb447.tar.bz2
Intern the strings "__builtins__".
-rw-r--r--Objects/frameobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index e416b4f..546f1e8 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -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;
}