summaryrefslogtreecommitdiff
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-08 12:01:25 -0700
committerVictor Stinner <victor.stinner@gmail.com>2016-09-08 12:01:25 -0700
commita4348cc1bef6f97d0a44b5f8fc60fbcffbcf7cb9 (patch)
tree71d65420a1f2999502bcd6db29b6e7cbcb1e14c1 /Include/dictobject.h
parent58f7c5a9554e95b030e5d72f7ef4e48db87a6149 (diff)
downloadcpython-git-a4348cc1bef6f97d0a44b5f8fc60fbcffbcf7cb9.tar.gz
Add documentation to the dict implementation
Issue #27350.
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r--Include/dictobject.h9
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;