[pypy-svn] r39296 - pypy/dist/pypy/objspace

pedronis at codespeak.net pedronis at codespeak.net
Wed Feb 21 17:08:07 CET 2007


Author: pedronis
Date: Wed Feb 21 17:08:05 2007
New Revision: 39296

Modified:
   pypy/dist/pypy/objspace/thunk.py
Log:
make this translate again.



Modified: pypy/dist/pypy/objspace/thunk.py
==============================================================================
--- pypy/dist/pypy/objspace/thunk.py	(original)
+++ pypy/dist/pypy/objspace/thunk.py	Wed Feb 21 17:08:05 2007
@@ -97,7 +97,7 @@
 app_become = gateway.interp2app(become)
 
 def lazy(space, w_callable):
-    meth = Method(space, space.wrap(app_thunk),
+    meth = Method(space, space.w_fn_thunk,
                   w_callable, space.type(w_callable))
     return space.wrap(meth)
 app_lazy = gateway.interp2app(lazy)
@@ -173,8 +173,9 @@
     space = std.Space(*args, **kwds)
     patch_space_in_place(space, 'thunk', proxymaker)
     w_pypymagic = space.getbuiltinmodule("pypymagic")
+    space.w_fn_thunk = space.wrap(app_thunk)
     space.setattr(w_pypymagic, space.wrap('thunk'),
-                  space.wrap(app_thunk))
+                  space.w_fn_thunk)
     space.setattr(w_pypymagic, space.wrap('is_thunk'),
                   space.wrap(app_is_thunk))
     space.setattr(w_pypymagic, space.wrap('become'),



More information about the Pypy-commit mailing list