PyCFunction_New(): to Py_DECREF() or not to Py_DECREF()

Benjamin Peterson benjamin at python.org
Sat Dec 26 21:15:23 EST 2009


Ecir Hana <ecir.hana <at> gmail.com> writes:
> do I have to
> 
> Py_DECREF(function)
> 
> or not?

Yes, you still own the reference to the function.





More information about the Python-list mailing list