[pypy-commit] pypy default: This dict acts as a globals dict, make it one.
cfbolz
noreply at buildbot.pypy.org
Mon May 16 11:22:50 CEST 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch:
Changeset: r44196:04651db7dd4a
Date: 2011-05-15 19:32 +0200
http://bitbucket.org/pypy/pypy/changeset/04651db7dd4a/
Log: This dict acts as a globals dict, make it one.
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1337,7 +1337,7 @@
source = source.lstrip()
assert source.startswith('('), "incorrect header in:\n%s" % (source,)
source = py.code.Source("def anonymous%s\n" % source)
- w_glob = space.newdict()
+ w_glob = space.newdict(module=True)
space.exec_(str(source), w_glob, w_glob)
return space.getitem(w_glob, space.wrap('anonymous'))
More information about the pypy-commit
mailing list