summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-17 16:27:25 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-17 16:27:25 (GMT)
commitb4e7e25fe6f7e2c075f463b58ebdcfe21dedaf06 (patch)
tree484e6d4b235dd257ea9c94867864e03e7a3f2481 /Objects
parentcd938fc5a1ba4a61959460787eb549ff989ca6b0 (diff)
downloadcpython-b4e7e25fe6f7e2c075f463b58ebdcfe21dedaf06.zip
cpython-b4e7e25fe6f7e2c075f463b58ebdcfe21dedaf06.tar.gz
cpython-b4e7e25fe6f7e2c075f463b58ebdcfe21dedaf06.tar.bz2
different init for __builtins__
Diffstat (limited to 'Objects')
-rw-r--r--Objects/frameobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 52b4e52..beb4c2d 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -149,6 +149,8 @@ newframeobject(back, code, globals, locals, owner, nvalues, nblocks)
return NULL;
}
builtins = dictlookup(globals, "__builtins__");
+ if (builtins != NULL && is_moduleobject(builtins))
+ builtins = getmoduledict(builtins);
if (builtins == NULL || !is_mappingobject(builtins)) {
err_setstr(TypeError, "bad __builtins__ dictionary");
return NULL;