• Amaury Forgeot d'Arc's avatar
    Issue 3110: Crash with weakref subclass, · 3255e134
    Amaury Forgeot d'Arc authored
    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!
    
    Backport of r34309
    3255e134
test_weakref.py 39.3 KB