[Python-3000] Use Py_CLEAR only

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 19 09:08:05 CEST 2006


Walter Dörwald wrote:
> Greg Ewing wrote:
>> It would be less efficient in the cases where you don't
>> need to check for NULL and/or clear the reference
>> afterwards.
> 
> Both should be optimized away by the compiler.

How? I don't see how the compiler can know either of
those things.

--
Greg


More information about the Python-3000 mailing list