[issue20440] Use Py_REPLACE/Py_XREPLACE macros
Tal Einat
report at bugs.python.org
Tue Feb 25 23:00:54 CET 2014
Tal Einat added the comment:
PY_ASSIGN_AND_DECREF could seem to imply that the assigned value is DECREF-ed. I think PY_DECREF_AND_ASSIGN makes it clearer that the original value is DECREF-ed.
I like PY_ASSIGN_NULL_AND_DECREF, though for the same reason as above, I'd name it PY_DECREF_AND_ASSIGN_NULL.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20440>
_______________________________________
More information about the Python-bugs-list
mailing list