From a7252f88d3fa33036bdd6036b8c97bc785ed6f17 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Wed, 6 Oct 2021 13:19:53 +0100 Subject: bpo-40116: Add insertion order bit-vector to dict values to allow dicts to share keys more freely. (GH-28520) --- Include/cpython/dictobject.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Include/cpython') 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, -- cgit v1.2.1