summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-11-15 17:10:06 (GMT)
committerGitHub <noreply@github.com>2023-11-15 17:10:06 (GMT)
commitbd2f1485b089bd38d123b4d202a37e567f119482 (patch)
tree5d1bde9b3388f7a19cec276386532173e44f66ba /Include
parentec055073673d5b949aa81311405d92159bab342e (diff)
downloadcpython-bd2f1485b089bd38d123b4d202a37e567f119482.zip
cpython-bd2f1485b089bd38d123b4d202a37e567f119482.tar.gz
cpython-bd2f1485b089bd38d123b4d202a37e567f119482.tar.bz2
gh-112026: Restore removed _PyDict_GetItemStringWithError() (#112119)
Restore the removed _PyDict_GetItemStringWithError() function. It is used by numpy.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/dictobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h
index 91ddc08..944965f 100644
--- a/Include/cpython/dictobject.h
+++ b/Include/cpython/dictobject.h
@@ -34,7 +34,7 @@ typedef struct {
PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
Py_hash_t hash);
-
+PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *);
PyAPI_FUNC(PyObject *) PyDict_SetDefault(
PyObject *mp, PyObject *key, PyObject *defaultobj);