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!
This commit is contained in:
Amaury Forgeot d'Arc 2008-06-16 19:12:42 +00:00
parent 305480c9dc
commit a8919fe631
3 changed files with 55 additions and 5 deletions

View file

@ -12,6 +12,9 @@ What's New in Python 2.6 beta 1?
Core and Builtins
-----------------
- Issue #3100: Corrected a crash on deallocation of a subclassed weakref which
holds the last (strong) reference to its referent.
- Add future_builtins.ascii().
- Several set methods now accept multiple arguments: update(), union(),