[pypy-svn] r40033 - pypy/dist/pypy/interpreter

pedronis at codespeak.net pedronis at codespeak.net
Wed Mar 7 17:15:23 CET 2007


Author: pedronis
Date: Wed Mar  7 17:15:21 2007
New Revision: 40033

Modified:
   pypy/dist/pypy/interpreter/baseobjspace.py
Log:
use a logic more similar to setup_after_initialization, no need for exception handling this way



Modified: pypy/dist/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/dist/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/dist/pypy/interpreter/baseobjspace.py	Wed Mar  7 17:15:21 2007
@@ -200,12 +200,10 @@
 
         # Initialize all builtin modules
         from pypy.interpreter.module import Module
-        for modname in self._builtinmodule_list:
-            try:
-                mod = self.getbuiltinmodule(modname)
-            except OperationError:
-                # Not found, ignore it.
-                continue
+        for w_modname in self.unpackiterable(
+                                self.sys.get('builtin_module_names')):
+            modname = self.str_w(w_modname)
+            mod = self.getbuiltinmodule(modname)
             if isinstance(mod, Module):
                 mod.startup(self)
 



More information about the Pypy-commit mailing list