diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-08 12:01:25 -0700 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-08 12:01:25 -0700 |
commit | a4348cc1bef6f97d0a44b5f8fc60fbcffbcf7cb9 (patch) | |
tree | 71d65420a1f2999502bcd6db29b6e7cbcb1e14c1 /Include/dictobject.h | |
parent | 58f7c5a9554e95b030e5d72f7ef4e48db87a6149 (diff) | |
download | cpython-git-a4348cc1bef6f97d0a44b5f8fc60fbcffbcf7cb9.tar.gz |
Add documentation to the dict implementation
Issue #27350.
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r-- | Include/dictobject.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index ba90aaf676..02d40ff386 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -22,8 +22,17 @@ typedef struct _dictkeysobject PyDictKeysObject; */ typedef struct { PyObject_HEAD + + /* Number of items in the dictionary */ Py_ssize_t ma_used; + 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). + + If ma_values is not NULL, the table is splitted: + keys are stored in ma_keys and values are stored in ma_values */ PyObject **ma_values; } PyDictObject; |