Clean weakrefs before calling user's dealloc
We must clean the weakreferences before calling the user's __dealloc__ because if the __dealloc__ releases the GIL, a weakref can be dereferenced accessing the object in an inconsistent state or resurrecting it.
Showing
Please register or sign in to comment