Skip to content

Commit

Permalink
pythongh-112026: Deprecate _PyDict_GetItemStringWithError() function (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored and mliezun committed Jun 3, 2024
1 parent 2b795f2 commit 77d328b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Include/cpython/dictobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 77d328b

Please sign in to comment.