Skip to content

Commit f7f5a82

Browse files
committed
python#10594: fix parameter names in PyList API docs.
1 parent 063f237 commit f7f5a82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/c-api/list.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ List Objects
3737
3838
.. note::
3939
40-
If *length* is greater than zero, the returned list object's items are
40+
If *len* is greater than zero, the returned list object's items are
4141
set to ``NULL``. Thus you cannot use abstract API functions such as
4242
:c:func:`PySequence_SetItem` or expose the object to Python code before
4343
setting all items to a real object with :c:func:`PyList_SetItem`.
@@ -58,9 +58,9 @@ List Objects
5858
5959
.. c:function:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index)
6060
61-
Return the object at position *pos* in the list pointed to by *p*. The
61+
Return the object at position *index* in the list pointed to by *list*. The
6262
position must be positive, indexing from the end of the list is not
63-
supported. If *pos* is out of bounds, return *NULL* and set an
63+
supported. If *index* is out of bounds, return *NULL* and set an
6464
:exc:`IndexError` exception.
6565
6666

0 commit comments

Comments
 (0)