diff options
author | Victor Stinner <vstinner@python.org> | 2024-06-03 08:26:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 08:26:13 (GMT) |
commit | 70934fb46982ad2ae677cca485a730b39635919c (patch) | |
tree | 6e184ba04b0f0472904116eb6d7107afc8ad62cb | |
parent | 4223f1d828d3a3e1c8d803e3fdd420afd7d85faf (diff) | |
download | cpython-70934fb46982ad2ae677cca485a730b39635919c.zip cpython-70934fb46982ad2ae677cca485a730b39635919c.tar.gz cpython-70934fb46982ad2ae677cca485a730b39635919c.tar.bz2 |
gh-112026: Deprecate _PyDict_GetItemStringWithError() function (#119855)
-rw-r--r-- | Include/cpython/dictobject.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h index 3fd23b9..e2861c9 100644 --- a/Include/cpython/dictobject.h +++ b/Include/cpython/dictobject.h @@ -37,7 +37,8 @@ typedef struct { PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key, Py_hash_t hash); -PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *); +// PyDict_GetItemStringRef() can be used instead +Py_DEPRECATED(3.14) PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *); PyAPI_FUNC(PyObject *) PyDict_SetDefault( PyObject *mp, PyObject *key, PyObject *defaultobj); |