Am 05/19/2008 07:03 PM schrieb Stefan Behnel:
> If you define these two functions (or macros) that way, Pyrex/Cython will
> assume they are functions that work on an object (which is ok) and that
> will return an object (which is not ok), and it will check the result for
> NULL etc.
> 
> You can define them this way:
> 
>   cdef extern from "Python.h":
>     cdef void Py_INCREF(object o)
>     cdef void Py_DECREF(object o)

Thanks, that was the problem.

Shouldn't this be mentioned in the documentation?

Johannes



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to