From: Georg Brandl Date: Thu, 6 Apr 2006 12:45:51 +0000 (+0000) Subject: Bug #1464658: make clear that PyList_GetItem doesn't take negative indices. X-Git-Tag: v2.5a2~404 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4dce8e4e69a75d4980583a194a5992f9fa3038e4;p=thirdparty%2FPython%2Fcpython.git Bug #1464658: make clear that PyList_GetItem doesn't take negative indices. --- diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index 3a918beb947a..98e0e039ab59 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -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}