]> granicus.if.org Git - python/commit
Issue 3110: Crash with weakref subclass,
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 16 Jun 2008 19:12:42 +0000 (19:12 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 16 Jun 2008 19:12:42 +0000 (19:12 +0000)
commita8919fe631c50a35d355e7174676283ca57e465e
tree2275d64a09c5b95c92ff04ca21777a983623823f
parent305480c9dcec736cba91db62062f75b5ceff9b60
Issue 3110: Crash with weakref subclass,
seen after a "import multiprocessing.reduction"

An instance of a weakref subclass can have attributes.
If such a weakref holds the only strong reference to the object,
deleting the weakref will delete the object. In this case,
the callback must not be called, because the ref object is being deleted!
Lib/test/test_weakref.py
Misc/NEWS
Objects/weakrefobject.c