Py_Object* Py_BuildValue, Py_INCREF necessary?

Torsten Mohr tmohr at
Mon Jan 17 15:43:40 EST 2005


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,

More information about the Python-list mailing list