[pypy-svn] r73729 - pypy/branch/cpython-extension/pypy/module/cpyext

xoraxax at codespeak.net xoraxax at codespeak.net
Wed Apr 14 10:25:25 CEST 2010


Author: xoraxax
Date: Wed Apr 14 10:25:23 2010
New Revision: 73729

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/pycobject.py
Log:
Use generic cpycall also for pycobjects to get the call_external_function_magic.

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:25:23 2010
@@ -29,9 +29,9 @@
     def __del__(self):
         if self.pyo and self.pyo.c_destructor:
             if self.desc:
-                rffi.cast(destructor_long, self.pyo.c_destructor)(self.voidp, self.desc)
+                generic_cpy_call(rffi.cast(destructor_long, self.pyo.c_destructor), self.voidp, self.desc)
             else:
-                self.pyo.c_destructor(self.voidp)
+                generic_cpy_call(self.pyo.c_destructor, self.voidp)
 
 
 @cpython_api([rffi.VOIDP_real, destructor_short], PyObject)



More information about the Pypy-commit mailing list