Author: Lin Cheng <[email protected]>
Branch: py3.6
Changeset: r98330:5ac2c72ee7ed
Date: 2019-12-18 20:46 -0500
http://bitbucket.org/pypy/pypy/changeset/5ac2c72ee7ed/

Log:    pypy/interpreter/pyframe.py: if locals directory is created inside
        fast2locals, create a module dictionary

diff --git a/pypy/interpreter/pyframe.py b/pypy/interpreter/pyframe.py
--- a/pypy/interpreter/pyframe.py
+++ b/pypy/interpreter/pyframe.py
@@ -565,7 +565,7 @@
         # Copy values from the fastlocals to self.w_locals
         d = self.getorcreatedebug()
         if d.w_locals is None:
-            d.w_locals = self.space.newdict()
+            d.w_locals = self.space.newdict(module=True)
         varnames = self.getcode().getvarnames()
         for i in range(min(len(varnames), self.getcode().co_nlocals)):
             name = varnames[i]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to