commit | 1b1845569539db5c1a6948a5d32daea381f1e35f | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Tue Oct 08 00:09:31 2019 +0200 |
committer | GitHub <noreply@github.com> | Tue Oct 08 00:09:31 2019 +0200 |
tree | 9e9b867120a68e7f1f2c1f270dd102a6297adca6 | |
parent | 7775349895088a7ae68cecf0c74cf817f15e2c74 [diff] |
bpo-38392: PyObject_GC_Track() validates object in debug mode (GH-16615) In debug mode, PyObject_GC_Track() now calls tp_traverse() of the object type to ensure that the object is valid: test that objects visited by tp_traverse() are valid. Fix pyexpat.c: only track the parser in the GC once the parser is fully initialized.