mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
#10594: fix parameter names in PyList API docs.
This commit is contained in:
parent
063f237812
commit
f7f5a82b36
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ List Objects
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
If *length* is greater than zero, the returned list object's items are
|
If *len* is greater than zero, the returned list object's items are
|
||||||
set to ``NULL``. Thus you cannot use abstract API functions such as
|
set to ``NULL``. Thus you cannot use abstract API functions such as
|
||||||
:c:func:`PySequence_SetItem` or expose the object to Python code before
|
:c:func:`PySequence_SetItem` or expose the object to Python code before
|
||||||
setting all items to a real object with :c:func:`PyList_SetItem`.
|
setting all items to a real object with :c:func:`PyList_SetItem`.
|
||||||
|
@ -58,9 +58,9 @@ List Objects
|
||||||
|
|
||||||
.. c:function:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index)
|
.. c:function:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index)
|
||||||
|
|
||||||
Return the object at position *pos* in the list pointed to by *p*. The
|
Return the object at position *index* in the list pointed to by *list*. The
|
||||||
position must be positive, indexing from the end of the list is not
|
position must be positive, indexing from the end of the list is not
|
||||||
supported. If *pos* is out of bounds, return *NULL* and set an
|
supported. If *index* is out of bounds, return *NULL* and set an
|
||||||
:exc:`IndexError` exception.
|
:exc:`IndexError` exception.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue