[Python-checkins] r43705 - python/branches/release24-maint/Doc/api/concrete.tex

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


Author: georg.brandl
Date: Thu Apr  6 14:45:54 2006
New Revision: 43705

Modified:
   python/branches/release24-maint/Doc/api/concrete.tex
Log:
Bug #1464658: make clear that PyList_GetItem doesn't take negative indices.
 (backport from rev. 43704)

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


More information about the Python-checkins mailing list