Bug #1464658: make clear that PyList_GetItem doesn't take negative indices.
This commit is contained in:
parent
729156e7de
commit
4dce8e4e69
|
@ -1803,8 +1803,9 @@ format.
|
||||||
|
|
||||||
\begin{cfuncdesc}{PyObject*}{PyList_GetItem}{PyObject *list, Py_ssize_t index}
|
\begin{cfuncdesc}{PyObject*}{PyList_GetItem}{PyObject *list, Py_ssize_t index}
|
||||||
Return the object at position \var{pos} in the list pointed to by
|
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
|
\var{p}. The position must be positive, indexing from the end of the
|
||||||
\exception{IndexError} exception.
|
list is not supported. If \var{pos} is out of bounds, return \NULL{}
|
||||||
|
and set an \exception{IndexError} exception.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{PyObject*}{PyList_GET_ITEM}{PyObject *list, Py_ssize_t i}
|
\begin{cfuncdesc}{PyObject*}{PyList_GET_ITEM}{PyObject *list, Py_ssize_t i}
|
||||||
|
|
Loading…
Reference in New Issue