]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)
authorYasser A <i_r7al@me.com>
Mon, 30 Nov 2020 09:53:11 +0000 (01:53 -0800)
committerGitHub <noreply@github.com>
Mon, 30 Nov 2020 09:53:11 +0000 (10:53 +0100)
Doc/c-api/tuple.rst

index bf751e44acde094ff0e341e3253336a77ea3aba0..c0c14f480d39b8db06661d14fe3b7c3cf66745df 100644 (file)
@@ -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)