[Python-3000] Use Py_CLEAR only

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 19 07:59:48 CEST 2006


Edward C. Jones wrote:

> Can Py_CLEAR completely replace Py_DECREF and Py_XDECREF?

It would be less efficient in the cases where you don't
need to check for NULL and/or clear the reference
afterwards.

--
Greg


More information about the Python-3000 mailing list