mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-5945: Improve mappings and sequences C API docs. (GH-7029)
This commit is contained in:
parent
268cc7c3f8
commit
f5b1183610
5 changed files with 101 additions and 76 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue