summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-04-06 12:45:54 (GMT)
committerGeorg Brandl <georg@python.org>2006-04-06 12:45:54 (GMT)
commit0ab63d8e4a4a4c100d0dcae8b23ef856188af6ea (patch)
treef0d406640e0aa717ed9b038b0646fe7d8eb8da85 /Doc/api
parenta5abdb30938fef93407f3d40de81a20ab3c928db (diff)
downloadcpython-0ab63d8e4a4a4c100d0dcae8b23ef856188af6ea.zip
cpython-0ab63d8e4a4a4c100d0dcae8b23ef856188af6ea.tar.gz
cpython-0ab63d8e4a4a4c100d0dcae8b23ef856188af6ea.tar.bz2
Bug #1464658: make clear that PyList_GetItem doesn't take negative indices.
(backport from rev. 43704)
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index c2c61a6..5fe07db 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}