[Python-checkins] r86914 - python/branches/py3k/Doc/c-api/list.rst
georg.brandl
python-checkins at python.org
Wed Dec 1 16:36:33 CET 2010
Author: georg.brandl
Date: Wed Dec 1 16:36:33 2010
New Revision: 86914
Log:
#10594: fix parameter names in PyList API docs.
Modified:
python/branches/py3k/Doc/c-api/list.rst
Modified: python/branches/py3k/Doc/c-api/list.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/list.rst (original)
+++ python/branches/py3k/Doc/c-api/list.rst Wed Dec 1 16:36:33 2010
@@ -37,7 +37,7 @@
.. 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
:c:func:`PySequence_SetItem` or expose the object to Python code before
setting all items to a real object with :c:func:`PyList_SetItem`.
@@ -58,9 +58,9 @@
.. 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
- 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.
More information about the Python-checkins
mailing list