summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-14 15:02:01 +0200
committerVictor Stinner <victor.stinner@gmail.com>2016-09-14 15:02:01 +0200
commitf59321cd121d5deb6265e1e9c209c5fb04d3f923 (patch)
treebf551b2790146ed1ce9b6afd7b631830d2f341bc /Include
parentea907a5fdf5fee1b52e2ab55aa6320ca74e80361 (diff)
downloadcpython-f59321cd121d5deb6265e1e9c209c5fb04d3f923.tar.gz
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 931d4bf203..cf0745853e 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 */