]> granicus.if.org Git - python/commit
Fix crasher for when an object's __del__ creates a new weakref to itself.
authorBrett Cannon <bcannon@gmail.com>
Tue, 23 Jan 2007 23:21:22 +0000 (23:21 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 23 Jan 2007 23:21:22 +0000 (23:21 +0000)
commitf5bee30e30687447d9d532dc298ba0793beb4515
tree429f3a16538dc9c832f2b04f74f9200f95121b23
parent6c5c502b914261ba333e98c4657a8d90cfbbe872
Fix crasher for when an object's __del__ creates a new weakref to itself.
Patch only fixes new-style classes; classic classes still buggy.

Closes bug #1377858.  Already backported.
Lib/test/crashers/weakref_in_del.py
Lib/test/test_weakref.py
Misc/NEWS
Objects/typeobject.c
Objects/weakrefobject.c