If you created a weakref in an object's __del__ method to itself it would
authorBrett Cannon <bcannon@gmail.com>
Tue, 23 Jan 2007 22:41:20 +0000 (22:41 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 23 Jan 2007 22:41:20 +0000 (22:41 +0000)
commit75ba075110bbb3dcac6e975540bf8eda65774ec1
tree012de9cedbf5036184d8bbbea0ec4da61ea1f00f
parent601d03a5be6a6952ecb57750f0365d6ef2abd4eb
If you created a weakref in an object's __del__ method to itself it would
segfault the interpreter during weakref clean up.  Now any new weakrefs created
after __del__ is run are removed silently.

Fixes bug #1377858 and the weakref_in_del crasher for new-style classes.
Classic classes are still affected.
Lib/test/crashers/weakref_in_del.py
Lib/test/test_weakref.py
Misc/NEWS
Objects/typeobject.c
Objects/weakrefobject.c