[3.12] gh-127954: Document PyObject_DelItemString (GH-127986) (#128497)

(cherry picked from commit 8ade15343d)

Co-authored-by: RUANG (James Roy) <rruuaanng@outlook.com>
This commit is contained in:
Miss Islington (bot) 2025-01-04 21:54:56 +01:00 committed by GitHub
parent e3e4852fe0
commit e1a20910dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -393,6 +393,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