diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-14 15:02:01 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-14 15:02:01 +0200 |
commit | f59321cd121d5deb6265e1e9c209c5fb04d3f923 (patch) | |
tree | bf551b2790146ed1ce9b6afd7b631830d2f341bc /Include | |
parent | ea907a5fdf5fee1b52e2ab55aa6320ca74e80361 (diff) | |
download | cpython-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.h | 2 |
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 */ |