diff options
author | Mark Shannon <mark@hotpy.org> | 2021-09-17 11:20:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 11:20:51 (GMT) |
commit | 064464fc38269e70f7e3a34cb25fc9085ab85782 (patch) | |
tree | 685df2fa53696910d4968ef900aadaebbbf4035d /Include/cpython | |
parent | cb07838ab756564988b1ffd23871f1222a832446 (diff) | |
download | cpython-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.h | 4 |
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); |