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

arigo at codespeak.net arigo at codespeak.net
Tue Mar 22 00:05:49 CET 2005


Author: arigo
Date: Tue Mar 22 00:05:49 2005
New Revision: 10039

Added:
   pypy/dist/pypy/objspace/thunk_and_idhack.py   (contents, props changed)
Modified:
   pypy/dist/pypy/objspace/thunk.py
Log:
We need a way to combine proxy levels on object spaces...  For now I need the
"thunk_and_idhack object space"...



Modified: pypy/dist/pypy/objspace/thunk.py
==============================================================================
--- pypy/dist/pypy/objspace/thunk.py	(original)
+++ pypy/dist/pypy/objspace/thunk.py	Tue Mar 22 00:05:49 2005
@@ -63,8 +63,8 @@
         return parentfn(*newargs)
     return proxy
 
-def Space():
-    space = create_proxy_space('thunk', proxymaker)
+def Space(space=None):
+    space = create_proxy_space('thunk', proxymaker, space=space)
     space.setitem(space.builtin.w_dict, space.wrap('thunk'),
                   space.wrap(app_thunk))
     return space

Added: pypy/dist/pypy/objspace/thunk_and_idhack.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/objspace/thunk_and_idhack.py	Tue Mar 22 00:05:49 2005
@@ -0,0 +1,5 @@
+import thunk, idhack
+
+def Space():
+    space = idhack.IdHackSpace()
+    return thunk.Space(space)



More information about the Pypy-commit mailing list