Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r83952:ae66ec7f9ce7
Date: 2016-04-26 20:08 -0700
http://bitbucket.org/pypy/pypy/changeset/ae66ec7f9ce7/
Log: globals deserves module=True
diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -1629,7 +1629,7 @@
if caller is None:
caller = space.getexecutioncontext().gettopframe_nohidden()
if caller is None:
- w_globals = space.newdict()
+ w_globals = space.newdict(module=True)
if space.is_none(w_locals):
w_locals = w_globals
else:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit