mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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".
This commit is contained in:
parent
4659ccff70
commit
611b0fa94c
3 changed files with 91 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue