SIGN IN SIGN UP

Issue #16602: When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.

Thanks to Eugene Toder for diagnosing and reporting the issue.
A
Antoine Pitrou committed
f93ed3fa67260fa0023a1360a37ab7e320550455