On Mon, Feb 14, 2011 at 1:50 AM, Greg Ewing <greg.ew...@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.
_______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel