[Python-checkins] r43704 - python/trunk/Doc/api/concrete.tex

georg.brandl python-checkins at python.org
Thu Apr 6 14:45:52 CEST 2006


Author: georg.brandl
Date: Thu Apr  6 14:45:51 2006
New Revision: 43704

Modified:
   python/trunk/Doc/api/concrete.tex
Log:
Bug #1464658: make clear that PyList_GetItem doesn't take negative indices.


Modified: python/trunk/Doc/api/concrete.tex
==============================================================================
--- python/trunk/Doc/api/concrete.tex	(original)
+++ python/trunk/Doc/api/concrete.tex	Thu Apr  6 14:45:51 2006
@@ -1803,8 +1803,9 @@
 
 \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}


More information about the Python-checkins mailing list