[issue20440] Use Py_REPLACE/Py_XREPLACE macros

Serhiy Storchaka report at bugs.python.org
Thu Jan 30 13:58:59 CET 2014


Serhiy Storchaka added the comment:

> Unless some known bugs are being fixed, this should be 3.4 only.

For example here is a bug very similar to a bug fixed in issue16447.

class Nasty(str):
    def __del__(self):
        C.__qualname__ = "other"

class C:
    pass

C.__qualname__ = Nasty("abc")
C.__qualname__ = "normal"
C.__qualname__ = "normal"

----------

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


More information about the Python-bugs-list mailing list