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 "Py_CLEAR/Py_REPLACE". 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 <rep...@bugs.python.org> <http://bugs.python.org/issue16447> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com