SIGN IN SIGN UP

bpo-38070: Enhance visit_decref() debug trace (GH-16631)

subtract_refs() now pass the parent object to visit_decref() which
pass it to _PyObject_ASSERT(). So if the "is freed" assertion fails,
the parent is used in debug trace, rather than the freed object. The
parent object is more likely to contain useful information. Freed
objects cannot be inspected are are displayed as "<object at xxx is
freed>" with no other detail.
V
Victor Stinner committed
4d5f94b8cd20f804c7868c5395a15aa6032f874c
Parent: 36e33c3
Committed by GitHub <noreply@github.com> on 10/8/2019, 12:37:38 AM