diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 18:58:22 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 18:58:22 +0100 |
commit | 5fd2e5ae8ae3dfaaf96d9771eb6f3fcacc4d3b31 (patch) | |
tree | 284086fc6eaa8624d69335bc0c8dc7b206939d87 /Include/dictobject.h | |
parent | Issue #19512: Py_ReprEnter() and Py_ReprLeave() now use an identifier for the (diff) | |
download | cpython-5fd2e5ae8ae3dfaaf96d9771eb6f3fcacc4d3b31.tar.gz cpython-5fd2e5ae8ae3dfaaf96d9771eb6f3fcacc4d3b31.tar.bz2 cpython-5fd2e5ae8ae3dfaaf96d9771eb6f3fcacc4d3b31.zip |
Issue #19512: Add a new _PyDict_DelItemId() function, similar to
PyDict_DelItemString() but using an identifier for the key
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r-- | Include/dictobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index 16bd1d6cb1f..9e5c90c478d 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -109,6 +109,7 @@ PyAPI_FUNC(PyObject *) _PyDict_GetItemId(PyObject *dp, struct _Py_Identifier *ke PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item); PyAPI_FUNC(int) _PyDict_SetItemId(PyObject *dp, struct _Py_Identifier *key, PyObject *item); PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, const char *key); +PyAPI_FUNC(int) _PyDict_DelItemId(PyObject *mp, struct _Py_Identifier *key); #ifndef Py_LIMITED_API int _PyObjectDict_SetItem(PyTypeObject *tp, PyObject **dictptr, PyObject *name, PyObject *value); |