Jesús Cea Avión added the comment:

Yes, we should add a "Py_REPLACE()" macro. Sure. +1 to that.

With this issue in mind, I wonder if there is any situation where 
"Py_DECREF/Py_XDECREF" must be used that can not be replace with 

Is there any code that breaks if we replace "Py_XDECREF()" by "Py_CLEAR()"?. 
Could be possible even to replace Py_DECREF definition?.


Python tracker <>
Python-bugs-list mailing list

Reply via email to