[Python-Dev] Proposal: C API Macro to decref and set to NULL

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Jul 13 05:18:35 CEST 2004


Skip Montanaro <skip at pobox.com>:

> Just my two cents, but the name suggests to me that it's doing more than a
> simple decref and set to NULL.  I can't think of anything else off the top
> of my head that seems obviously better though.

Py_XDECREF_NULL?

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list