]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bug #1464658: make clear that PyList_GetItem doesn't take negative indices.
authorGeorg Brandl <georg@python.org>
Thu, 6 Apr 2006 12:45:51 +0000 (12:45 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 6 Apr 2006 12:45:51 +0000 (12:45 +0000)
Doc/api/concrete.tex

index 3a918beb947a71e0f375067bf66fbc950f65058f..98e0e039ab594a34967eb6c121de3a64b8862fa2 100644 (file)
@@ -1803,8 +1803,9 @@ format.
 
 \begin{cfuncdesc}{PyObject*}{PyList_GetItem}{PyObject *list, Py_ssize_t index}
   Return the object at position \var{pos} in the list pointed to by
-  \var{p}.  If \var{pos} is out of bounds, return \NULL{} and set an
-  \exception{IndexError} exception.
+  \var{p}.  The position must be positive, indexing from the end of the
+  list is not supported.  If \var{pos} is out of bounds, return \NULL{}
+  and set an \exception{IndexError} exception.
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{PyObject*}{PyList_GET_ITEM}{PyObject *list, Py_ssize_t i}