Nick Coghlan <ncogh...@gmail.com> writes: > Avoiding those misleading associations is a good argument in favour of > Py_REPLACE over Py_SETREF - they didn't occur to me before casting my > votes, and I can definitely see them causing confusion in the future. > > So perhaps the combination that makes the most sense is to add > Py_REPLACE (uses Py_DECREF on destination) & Py_XREPLACE (uses > Py_XDECREF on destination) to the existing Py_CLEAR?
Is there a strong reason to have an X/plain pair? Py_CLEAR doesn't seem to have one. This wasn't a subject of the poll. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com