From: Victor Stinner Date: Mon, 3 Jun 2024 08:26:13 +0000 (+0200) Subject: gh-112026: Deprecate _PyDict_GetItemStringWithError() function (#119855) X-Git-Tag: v3.14.0a1~1640 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70934fb46982ad2ae677cca485a730b39635919c;p=thirdparty%2FPython%2Fcpython.git gh-112026: Deprecate _PyDict_GetItemStringWithError() function (#119855) --- diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h index 3fd23b9313c4..e2861c963266 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);