https://github.com/python/cpython/commit/70934fb46982ad2ae677cca485a730b39635919c
commit: 70934fb46982ad2ae677cca485a730b39635919c
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2024-06-03T10:26:13+02:00
summary:
gh-112026: Deprecate _PyDict_GetItemStringWithError() function (#119855)
files:
M Include/cpython/dictobject.h
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h
index 3fd23b9313c453..e2861c963266ea 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);
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]