diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 17:58:22 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 17:58:22 (GMT) |
commit | 5fd2e5ae8ae3dfaaf96d9771eb6f3fcacc4d3b31 (patch) | |
tree | 284086fc6eaa8624d69335bc0c8dc7b206939d87 /Include | |
parent | 7a07e451a4f0a7c5b68af76f5ac6a6b1c2b10210 (diff) | |
download | cpython-5fd2e5ae8ae3dfaaf96d9771eb6f3fcacc4d3b31.zip cpython-5fd2e5ae8ae3dfaaf96d9771eb6f3fcacc4d3b31.tar.gz cpython-5fd2e5ae8ae3dfaaf96d9771eb6f3fcacc4d3b31.tar.bz2 |
Issue #19512: Add a new _PyDict_DelItemId() function, similar to
PyDict_DelItemString() but using an identifier for the key
Diffstat (limited to 'Include')
-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 16bd1d6..9e5c90c 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); |