[pypy-svn] r72499 - pypy/trunk/pypy/module/cpyext
xoraxax at codespeak.net
xoraxax at codespeak.net
Sun Mar 21 17:44:16 CET 2010
Author: xoraxax
Date: Sun Mar 21 17:44:15 2010
New Revision: 72499
Modified:
pypy/trunk/pypy/module/cpyext/object.py
Log:
Use w_type here, does not work, though.
Modified: pypy/trunk/pypy/module/cpyext/object.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/object.py (original)
+++ pypy/trunk/pypy/module/cpyext/object.py Sun Mar 21 17:44:15 2010
@@ -5,7 +5,7 @@
def get_cls_for_type_object(space, w_type):
if isinstance(w_type, W_PyCTypeObject):
- return space.allocate_instance(W_PyCObject, space.gettypeobject(W_PyCObject.typedef))
+ return space.allocate_instance(W_PyCObject, w_type)
assert False, "Please add more cases in get_cls_for_type_object!"
@cpython_api([PyObject], PyObject)
More information about the Pypy-commit
mailing list