Skip to content

Commit e1a2091

Browse files
[3.12] gh-127954: Document PyObject_DelItemString (GH-127986) (#128497)
(cherry picked from commit 8ade153) Co-authored-by: RUANG (James Roy) <[email protected]>
1 parent e3e4852 commit e1a2091

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/c-api/object.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,13 @@ Object Protocol
393393
on failure. This is equivalent to the Python statement ``del o[key]``.
394394
395395
396+
.. c:function:: int PyObject_DelItemString(PyObject *o, const char *key)
397+
398+
This is the same as :c:func:`PyObject_DelItem`, but *key* is
399+
specified as a :c:expr:`const char*` UTF-8 encoded bytes string,
400+
rather than a :c:expr:`PyObject*`.
401+
402+
396403
.. c:function:: PyObject* PyObject_Dir(PyObject *o)
397404
398405
This is equivalent to the Python expression ``dir(o)``, returning a (possibly

0 commit comments

Comments
 (0)