[pypy-svn] rev 2395 - pypy/trunk/src/pypy/interpreter

pmaupin at codespeak.net pmaupin at codespeak.net
Tue Dec 16 17:26:20 CET 2003


Author: pmaupin
Date: Tue Dec 16 17:26:19 2003
New Revision: 2395

Modified:
   pypy/trunk/src/pypy/interpreter/extmodule.py
Log:
Don't leak 'w_dict' from interpreter to user space

Modified: pypy/trunk/src/pypy/interpreter/extmodule.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/extmodule.py	(original)
+++ pypy/trunk/src/pypy/interpreter/extmodule.py	Tue Dec 16 17:26:19 2003
@@ -31,7 +31,7 @@
                         continue  # ignore CPython functions
 
                     # ignore tricky class-attrs we can't send from interp to app-level 
-                    if name in ('__metaclass__','__module__',):
+                    if name in ('__metaclass__','__module__','w_dict',):
                         continue
                     contents.setdefault(space.wrap(name), space.wrap(value))
         w_contents = space.newdict(contents.items())


More information about the Pypy-commit mailing list