]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-112026: Deprecate _PyDict_GetItemStringWithError() function (#119855)
authorVictor Stinner <vstinner@python.org>
Mon, 3 Jun 2024 08:26:13 +0000 (10:26 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2024 08:26:13 +0000 (10:26 +0200)
Include/cpython/dictobject.h

index 3fd23b9313c45361aea981a7d6cae99ab8aa52c3..e2861c963266ea8fe1d31bb9e02852c89533fd15 100644 (file)
@@ -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);