[Cython] Bug in NULL handling introduced 0.14.1-1
Chris Colbert
sccolbert at gmail.com
Mon Feb 14 15:11:21 CET 2011
On Mon, Feb 14, 2011 at 1:50 AM, Greg Ewing <greg.ewing at canterbury.ac.nz>wrote:
> Chris Colbert wrote:
>
>> changing the include definition to:
>>
>> cdef extern from "Python.h":
>> int PyObject_GenericSetAttr(PyObject*, PyObject*, PyObject*) except -1
>>
>
> This suggests another possible workaround:
>
>
> cdef extern from "Python.h":
> int PyObject_GenericDelAttr "PyObject_GenericSetAttr" (object, object,
> PyObject*)
>
> This creates an alias for PyObject_GenericSetAttr with a different
> signature, which you then call as
>
>
Awesome, I didn't know you could do this. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110214/ed01d228/attachment.html>
More information about the cython-devel
mailing list