]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127954: Document PyObject_DelItemString (#127986)
authorRUANG (James Roy) <rruuaanng@outlook.com>
Sat, 4 Jan 2025 20:48:20 +0000 (04:48 +0800)
committerGitHub <noreply@github.com>
Sat, 4 Jan 2025 20:48:20 +0000 (21:48 +0100)
Doc/c-api/object.rst

index a137688fe0754597572ad7c040dc1f9e3ecb3db2..3a434a4173eafaae6195846a67ae843e2f4dbbd8 100644 (file)
@@ -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