[pypy-svn] r71762 - pypy/branch/import-fiddle/pypy/module/sys
fijal at codespeak.net
fijal at codespeak.net
Fri Mar 5 04:07:27 CET 2010
Author: fijal
Date: Fri Mar 5 04:07:24 2010
New Revision: 71762
Modified:
pypy/branch/import-fiddle/pypy/module/sys/state.py
Log:
(cfbolz) Use celldict for sys.modules (this it the *actual* optimization)
Modified: pypy/branch/import-fiddle/pypy/module/sys/state.py
==============================================================================
--- pypy/branch/import-fiddle/pypy/module/sys/state.py (original)
+++ pypy/branch/import-fiddle/pypy/module/sys/state.py Fri Mar 5 04:07:24 2010
@@ -14,7 +14,7 @@
def __init__(self, space):
self.space = space
- self.w_modules = space.newdict()
+ self.w_modules = space.newdict(module=True)
self.w_warnoptions = space.newlist([])
self.w_argv = space.newlist([])
More information about the Pypy-commit
mailing list