summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-09-17 11:20:51 (GMT)
committerGitHub <noreply@github.com>2021-09-17 11:20:51 (GMT)
commit064464fc38269e70f7e3a34cb25fc9085ab85782 (patch)
tree685df2fa53696910d4968ef900aadaebbbf4035d /Include/cpython
parentcb07838ab756564988b1ffd23871f1222a832446 (diff)
downloadcpython-064464fc38269e70f7e3a34cb25fc9085ab85782.zip
cpython-064464fc38269e70f7e3a34cb25fc9085ab85782.tar.gz
cpython-064464fc38269e70f7e3a34cb25fc9085ab85782.tar.bz2
bpo-45219: Factor dictkey indexing (GH-28389)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/dictobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h
index de3c116..7c63374 100644
--- a/Include/cpython/dictobject.h
+++ b/Include/cpython/dictobject.h
@@ -85,4 +85,6 @@ PyAPI_FUNC(PyObject *) _PyDictView_Intersect(PyObject* self, PyObject *other);
/* Gets a version number unique to the current state of the keys of dict, if possible.
* Returns the version number, or zero if it was not possible to get a version number. */
-uint32_t _PyDictKeys_GetVersionForCurrentState(PyDictObject *dict);
+uint32_t _PyDictKeys_GetVersionForCurrentState(PyDictKeysObject *dictkeys);
+
+Py_ssize_t _PyDictKeys_StringLookup(PyDictKeysObject* dictkeys, PyObject *key);