]> granicus.if.org Git - python/commit
Add _PyDict_CheckConsistency()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 14 Sep 2016 13:02:01 +0000 (15:02 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 14 Sep 2016 13:02:01 +0000 (15:02 +0200)
commit611b0fa94ce935235599a4bf666aef88e46f0b3b
treefe11eeefc011436f6965e2a1b0283540d57f4275
parent4659ccff704431e23bd3635c9d6beb33551d62b8
Add _PyDict_CheckConsistency()

Issue #28127: Add a function to check that a dictionary remains consistent
after any change.

By default, tables are not checked, only basic attributes. Define DEBUG_PYDICT
(ex: gcc -D DEBUG_PYDICT) to also check dictionary "content".
Include/dictobject.h
Objects/dict-common.h
Objects/dictobject.c