You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[3.14] change in behaviour in gc.get_referrers(some_local) #125603
[<coroutine object demo at 0x7d00fff85000>]
e.value=None
this makes gc.get_referrers less useful in detecting cyclic garbage where I'd like to be able to make the assertion that the current frame is the only referrer to an Exception.
the alternative is to hold a weak reference to the object, delete the object and see if the weak reference is dead with the gc disabled. But then I don't get any debug information in my failing test of why the object is still alive.
Activity
graingert commentedon Oct 16, 2024
The behavior change was caused by this PR #124392
Add xfail to test_ki_protection_doesnt_leave_cyclic_garbage on Python…
Add xfail to test_ki_protection_doesnt_leave_cyclic_garbage on Python…
kumaraditya303 commentedon Jul 25, 2025
The behavior change is undesirable and breaks tests of many projects, should this be release blocker @hugovk ?