Message 68146 - Python tracker (original) (raw)

A new version of the patch, which tests the case of multiple weakrefs on the same object, that get deleted together: tp_dealloc of one weakref calls tp_dealloc of the second weakref, which calls tp_dealloc of the referenced object. Since the weakrefs are being deleted, no callback should fire.