From b56933ed2e1e2f921b8a20a6e8b9a9431a5cb447 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 18 Jan 1997 07:58:41 +0000 Subject: [PATCH] Intern the strings "__builtins__". --- Objects/frameobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/frameobject.c b/Objects/frameobject.c index e416b4fe9d1..546f1e8d722 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; }