Skip to content

Commit

Permalink
[3.13] pythongh-127954: Document PyObject_DelItemString (pythonGH-127986
Browse files Browse the repository at this point in the history
) (python#128496)

(cherry picked from commit 8ade153)

Co-authored-by: RUANG (James Roy) <rruuaanng@outlook.com>
  • Loading branch information
miss-islington and rruuaanng authored Jan 4, 2025
1 parent 62b4ca0 commit 5ed2b76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Doc/c-api/object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ed2b76

Please sign in to comment.