diff options
author | Victor Stinner <vstinner@python.org> | 2019-10-08 02:37:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-08 02:37:38 +0200 |
commit | 4d5f94b8cd20f804c7868c5395a15aa6032f874c (patch) | |
tree | ac7b34d63409a67659c9986b80e25970aea9a2fd /Python/_warnings.c | |
parent | 36e33c360ed7716a2b5ab2b53210da81f8ce1295 (diff) | |
download | cpython-git-4d5f94b8cd20f804c7868c5395a15aa6032f874c.tar.gz |
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.
Diffstat (limited to 'Python/_warnings.c')
0 files changed, 0 insertions, 0 deletions