summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-14 13:02:01 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-09-14 13:02:01 (GMT)
commit611b0fa94ce935235599a4bf666aef88e46f0b3b (patch)
treefe11eeefc011436f6965e2a1b0283540d57f4275 /Include
parent4659ccff704431e23bd3635c9d6beb33551d62b8 (diff)
downloadcpython-611b0fa94ce935235599a4bf666aef88e46f0b3b.zip
cpython-611b0fa94ce935235599a4bf666aef88e46f0b3b.tar.gz
cpython-611b0fa94ce935235599a4bf666aef88e46f0b3b.tar.bz2
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".
Diffstat (limited to 'Include')
-rw-r--r--Include/dictobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index 931d4bf..cf07458 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -33,7 +33,7 @@ typedef struct {
PyDictKeysObject *ma_keys;
/* If ma_values is NULL, the table is "combined": keys and values
- are stored in ma_keys (and ma_keys->dk_refcnt == 1).
+ are stored in ma_keys.
If ma_values is not NULL, the table is splitted:
keys are stored in ma_keys and values are stored in ma_values */