8000 gh-112026: Deprecate _PyDict_GetItemStringWithError() function (#119855) · python/cpython@70934fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 70934fb

Browse files
authored
gh-112026: Deprecate _PyDict_GetItemStringWithError() function (#119855)
1 parent 4223f1d commit 70934fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Include/cpython/dictobject.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ typedef struct {
3737

3838
PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
3939
Py_hash_t hash);
40-
PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *);
40+
// PyDict_GetItemStringRef() can be used instead
41+
Py_DEPRECATED(3.14) PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *);
4142
PyAPI_FUNC(PyObject *) PyDict_SetDefault(
4243
PyObject *mp, PyObject *key, PyObject *defaultobj);
4344

0 commit comments

Comments
 (0)
0