diff options
author | RUANG (James Roy) <rruuaanng@outlook.com> | 2025-01-04 20:48:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-04 20:48:20 (GMT) |
commit | 8ade15343d5daec3bf79ff7c47f03726fb2bcadf (patch) | |
tree | bb4217df1975188e56577de4f4124b219d61f861 /Doc/c-api/object.rst | |
parent | 87ee76062a7eb9c0fa2b94e36cfed21d86ae90ac (diff) | |
download | cpython-8ade15343d5daec3bf79ff7c47f03726fb2bcadf.zip cpython-8ade15343d5daec3bf79ff7c47f03726fb2bcadf.tar.gz cpython-8ade15343d5daec3bf79ff7c47f03726fb2bcadf.tar.bz2 |
gh-127954: Document PyObject_DelItemString (#127986)
Diffstat (limited to 'Doc/c-api/object.rst')
-rw-r--r-- | Doc/c-api/object.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index a137688..3a434a4 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -493,6 +493,13 @@ Object Protocol on failure. This is equivalent to the Python statement ``del o[key]``. +.. c:function:: int PyObject_DelItemString(PyObject *o, const char *key) + + This is the same as :c:func:`PyObject_DelItem`, but *key* is + specified as a :c:expr:`const char*` UTF-8 encoded bytes string, + rather than a :c:expr:`PyObject*`. + + .. c:function:: PyObject* PyObject_Dir(PyObject *o) This is equivalent to the Python expression ``dir(o)``, returning a (possibly |