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

Skip to content

Commit 02f2a16

Browse files
vstinnerbarneygale
authored andcommitted
pythongh-112026: Deprecate _PyDict_GetItemStringWithError() function (python#119855)
1 parent ef4c264 commit 02f2a16

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+< 4EE7 /span>
// 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