From: Yasser A Date: Mon, 30 Nov 2020 09:53:11 +0000 (-0800) Subject: bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529) X-Git-Tag: v3.10.0a3~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f004634a2bf50c782e223e2eb386ffa769b901c;p=thirdparty%2FPython%2Fcpython.git bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529) --- diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst index bf751e44acde..c0c14f480d39 100644 --- a/Doc/c-api/tuple.rst +++ b/Doc/c-api/tuple.rst @@ -57,7 +57,7 @@ Tuple Objects .. c:function:: PyObject* PyTuple_GetItem(PyObject *p, Py_ssize_t pos) Return the object at position *pos* in the tuple pointed to by *p*. If *pos* is - out of bounds, return ``NULL`` and set an :exc:`IndexError` exception. + negative or out of bounds, return ``NULL`` and set an :exc:`IndexError` exception. .. c:function:: PyObject* PyTuple_GET_ITEM(PyObject *p, Py_ssize_t pos)