[issue20440] Use Py_REPLACE/Py_XREPLACE macros

Serhiy Storchaka report at bugs.python.org
Tue Feb 25 22:52:08 CET 2014


Serhiy Storchaka added the comment:

> While we're bikeshedding, how about the more verbose PY_DECREF_AND_ASSIGN? That makes it clearer that an INCREF is not done.

Py_ASSIGN_AND_DECREF would be more correct. And Py_CLEAR can be renamed to Py_CLEAR_AND_XDECREF or Py_ASSIGN_NULL_AND_XDECREF.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20440>
_______________________________________


More information about the Python-bugs-list mailing list