[pypy-svn] r12374 - pypy/dist/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Mon May 16 18:24:35 CEST 2005
Author: arigo
Date: Mon May 16 18:24:35 2005
New Revision: 12374
Modified:
pypy/dist/pypy/objspace/std/fake.py
Log:
targetpypy-friendliness.
Modified: pypy/dist/pypy/objspace/std/fake.py
==============================================================================
--- pypy/dist/pypy/objspace/std/fake.py (original)
+++ pypy/dist/pypy/objspace/std/fake.py Mon May 16 18:24:35 2005
@@ -81,10 +81,11 @@
def fake__new__(space, w_type, __args__):
args_w, kwds_w = __args__.unpack()
args = [space.unwrap(w_arg) for w_arg in args_w]
- kwds = dict([(key, space.unwrap(w_value))
- for (key, w_value) in kwds_w.items()])
+ kwds = {}
+ for (key, w_value) in kwds_w.items():
+ kwds[key] = space.unwrap(w_value)
try:
- r = cpy_type.__new__(cpy_type, *args, **kwds)
+ r = apply(cpy_type.__new__, [cpy_type]+args, kwds)
except:
wrap_exception(space)
raise
More information about the Pypy-commit
mailing list