]> 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:54 +0000 (12:45 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 6 Apr 2006 12:45:54 +0000 (12:45 +0000)
 (backport from rev. 43704)

Doc/api/concrete.tex

index c2c61a6304c7df784522507caca0cf2206d6a7cd..5fe07db330f067692f0601752b100507ab8d4ebf 100644 (file)
@@ -1780,8 +1780,9 @@ format.
 
 \begin{cfuncdesc}{PyObject*}{PyList_GetItem}{PyObject *list, int 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, int i}