[pypy-svn] r10586 - in pypy/dist: goal pypy/translator

pedronis at codespeak.net pedronis at codespeak.net
Wed Apr 13 19:33:59 CEST 2005


Author: pedronis
Date: Wed Apr 13 19:33:59 2005
New Revision: 10586

Modified:
   pypy/dist/goal/buildcache2.py
   pypy/dist/pypy/translator/ann_override.py
Log:
now we have parser as a lazymodule too, need to force it also

use a different strategy about hiding pypy_getudir from the annotator, otherwise
we need to tweak directly into space._gatewaycache too




Modified: pypy/dist/goal/buildcache2.py
==============================================================================
--- pypy/dist/goal/buildcache2.py	(original)
+++ pypy/dist/goal/buildcache2.py	Wed Apr 13 19:33:59 2005
@@ -12,8 +12,14 @@
     print "*sys*"
     w_dic = space.sys.w_dict
     #print space.unwrap(space.call_method(w_dic,"keys"))
-    space.delitem(w_dic,space.wrap("pypy_getudir"))
-    print " * removed pypy_getudir"
+
+    # others
+    w_modules = space.sys.get('modules')
+    def getmodule(name):
+        return space.getitem(w_modules, space.wrap(name))
+
+    getmodule('parser').getdict()
+    print "*parser*"
 
     for typedef in interptypes:
         w_typ = space.gettypeobject(typedef)

Modified: pypy/dist/pypy/translator/ann_override.py
==============================================================================
--- pypy/dist/pypy/translator/ann_override.py	(original)
+++ pypy/dist/pypy/translator/ann_override.py	Wed Apr 13 19:33:59 2005
@@ -5,6 +5,7 @@
 from pypy.interpreter import error
 from pypy.interpreter import pyframe
 from pypy.objspace.std import fake
+from pypy.module.sys2 import state as sys_state
 
 def hole(*args):
     return annmodel.SomeImpossibleValue(benign=True)
@@ -22,4 +23,5 @@
 
 install(pyframe.cpython_tb, ignore)
 install(error.OperationError.record_interpreter_traceback, ignore)
+install(sys_state.pypy_getudir, ignore)
 install(fake.wrap_exception, hole)



More information about the Pypy-commit mailing list