Add documentation to the dict implementation

Issue #27350.
This commit is contained in:
Victor Stinner 2016-09-08 12:01:25 -07:00
parent 58f7c5a955
commit a4348cc1be
3 changed files with 51 additions and 3 deletions

View file

@ -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;