summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-04-06 12:45:51 (GMT)
committerGeorg Brandl <georg@python.org>2006-04-06 12:45:51 (GMT)
commit4dce8e4e69a75d4980583a194a5992f9fa3038e4 (patch)
tree30b2bb4f6aa9b3bcc748bc8a428685f014369680 /Doc/api
parent729156e7de27bd71e8a2d0c5676f8af236f4723b (diff)
downloadcpython-4dce8e4e69a75d4980583a194a5992f9fa3038e4.zip
cpython-4dce8e4e69a75d4980583a194a5992f9fa3038e4.tar.gz
cpython-4dce8e4e69a75d4980583a194a5992f9fa3038e4.tar.bz2
Bug #1464658: make clear that PyList_GetItem doesn't take negative indices.
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 3a918be..98e0e03 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}