[issue23720] __del__() order is broken since 3.4.0
Serhiy Storchaka
report at bugs.python.org
Sat Mar 21 12:50:34 CET 2015
Serhiy Storchaka added the comment:
> There is a cycle involving the class object, but I don’t think there is a cycle involving the instance objects this time.
It is.
>>> a = A()
>>> a.__class__.__del__.__globals__['a']
<__main__.A object at 0xb702230c>
And all objects referenced from user class or module level instance of user class are in a cycle. This problem can cause issues such as issue17852.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23720>
_______________________________________
More information about the Python-bugs-list
mailing list