]> granicus.if.org Git - python/commit
bpo-9263: _PyXXX_CheckConsistency() use _PyObject_ASSERT() (GH-10108)
authorVictor Stinner <vstinner@redhat.com>
Fri, 26 Oct 2018 16:47:15 +0000 (18:47 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Oct 2018 16:47:15 +0000 (18:47 +0200)
commit50fe3f8913c503e63f4cfb8ddcf8641ef7ad0722
tree371e51f8230246106bf5a3cacd47c4fb747f505c
parent0862505a0377c12e8004b2eb8de0555f26ce9530
bpo-9263: _PyXXX_CheckConsistency() use _PyObject_ASSERT() (GH-10108)

Use _PyObject_ASSERT() in:

* _PyDict_CheckConsistency()
* _PyType_CheckConsistency()
* _PyUnicode_CheckConsistency()

_PyObject_ASSERT() dumps the faulty object if the assertion fails
to help debugging.
Objects/dictobject.c
Objects/typeobject.c
Objects/unicodeobject.c