[pypy-svn] r73730 - pypy/branch/cpython-extension/pypy/module/cpyext
xoraxax at codespeak.net
xoraxax at codespeak.net
Wed Apr 14 10:28:24 CEST 2010
Author: xoraxax
Date: Wed Apr 14 10:28:23 2010
New Revision: 73730
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/pycobject.py
Log:
Add space argument.
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/pycobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/pycobject.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/pycobject.py Wed Apr 14 10:28:23 2010
@@ -22,6 +22,7 @@
self.voidp = voidp
self.pyo = lltype.nullptr(PyCObject.TO)
self.desc = desc
+ self.space = space
def set_pycobject(self, pyo):
self.pyo = pyo
@@ -29,9 +30,10 @@
def __del__(self):
if self.pyo and self.pyo.c_destructor:
if self.desc:
- generic_cpy_call(rffi.cast(destructor_long, self.pyo.c_destructor), self.voidp, self.desc)
+ generic_cpy_call(self.space, rffi.cast(destructor_long,
+ self.pyo.c_destructor), self.voidp, self.desc)
else:
- generic_cpy_call(self.pyo.c_destructor, self.voidp)
+ generic_cpy_call(self.space, self.pyo.c_destructor, self.voidp)
@cpython_api([rffi.VOIDP_real, destructor_short], PyObject)
More information about the Pypy-commit
mailing list