[issue1918] weak references are removed before __del__ is called.
Christian Heimes
report at bugs.python.org
Wed Jan 23 21:21:41 CET 2008
Christian Heimes added the comment:
The behavior is documented in the C code. I don't know how it is
described in the docs.
Objects/typeobject.c around line 820 says:
/* If we added a weaklist, we clear it. Do this *before* calling
the finalizer (__del__), clearing slots, or clearing the instance
dict. */
----------
nosy: +tiran
priority: -> normal
resolution: -> wont fix
status: open -> pending
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1918>
__________________________________
More information about the Python-bugs-list
mailing list