summaryrefslogtreecommitdiff
path: root/Include/cpython
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-10-06 13:19:53 +0100
committerGitHub <noreply@github.com>2021-10-06 13:19:53 +0100
commita7252f88d3fa33036bdd6036b8c97bc785ed6f17 (patch)
tree525655111a4423af0de21004ab1c3f6d7e765fe6 /Include/cpython
parentf6eafe18c004c55082de40d20cad084ef9dd3db7 (diff)
downloadcpython-git-a7252f88d3fa33036bdd6036b8c97bc785ed6f17.tar.gz
bpo-40116: Add insertion order bit-vector to dict values to allow dicts to share keys more freely. (GH-28520)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/dictobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h
index 7c63374c56..ba118788f7 100644
--- a/Include/cpython/dictobject.h
+++ b/Include/cpython/dictobject.h
@@ -3,6 +3,7 @@
#endif
typedef struct _dictkeysobject PyDictKeysObject;
+typedef struct _dictvalues PyDictValues;
/* The ma_values pointer is NULL for a combined table
* or points to an array of PyObject* for a split table
@@ -24,7 +25,7 @@ typedef struct {
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;
+ PyDictValues *ma_values;
} PyDictObject;
PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,