Py_Object* Py_BuildValue, Py_INCREF necessary?

Torsten Mohr tmohr at s.netic.de
Mon Jan 17 15:43:40 EST 2005


Hi,

when i write an extension module in C and return a Py_Object*
that i've built with Py_BuildValue, do i need to use Py_INCREF
on that before i return it to python from my extension module
or not?


Thanks for hints,
Torsten.




More information about the Python-list mailing list