From 0ab63d8e4a4a4c100d0dcae8b23ef856188af6ea Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 6 Apr 2006 12:45:54 +0000 Subject: [PATCH] Bug #1464658: make clear that PyList_GetItem doesn't take negative indices. (backport from rev. 43704) --- Doc/api/concrete.tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index c2c61a6304c7..5fe07db330f0 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -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} -- 2.47.3