summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/object.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-22 08:02:44 (GMT)
committerGitHub <noreply@github.com>2018-05-22 08:02:44 (GMT)
commitf5b1183610d5888db3bbd639b1a0c945dbd8f8dd (patch)
tree52e6ba29f4452c01ac73ebd53bf6f64d2092b95b /Doc/c-api/object.rst
parent268cc7c3f8f58075b42ff0cd6b6c6c5d76044895 (diff)
downloadcpython-f5b1183610d5888db3bbd639b1a0c945dbd8f8dd.zip
cpython-f5b1183610d5888db3bbd639b1a0c945dbd8f8dd.tar.gz
cpython-f5b1183610d5888db3bbd639b1a0c945dbd8f8dd.tar.bz2
bpo-5945: Improve mappings and sequences C API docs. (GH-7029)
Diffstat (limited to 'Doc/c-api/object.rst')
-rw-r--r--Doc/c-api/object.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 754dedc..f0b2005 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -379,8 +379,8 @@ Object Protocol
parameters must be non-*NULL*.
-.. c:function:: Py_ssize_t PyObject_Length(PyObject *o)
- Py_ssize_t PyObject_Size(PyObject *o)
+.. c:function:: Py_ssize_t PyObject_Size(PyObject *o)
+ Py_ssize_t PyObject_Length(PyObject *o)
.. index:: builtin: len
@@ -414,8 +414,8 @@ Object Protocol
.. c:function:: int PyObject_DelItem(PyObject *o, PyObject *key)
- Delete the mapping for *key* from *o*. Returns ``-1`` on failure. This is the
- equivalent of the Python statement ``del o[key]``.
+ Remove the mapping for the object *key* from the object *o*. Return ``-1``
+ on failure. This is equivalent to the Python statement ``del o[key]``.
.. c:function:: PyObject* PyObject_Dir(PyObject *o)