summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/tuple.rst
diff options
context:
space:
mode:
authorYasser A <i_r7al@me.com>2020-11-30 09:53:11 (GMT)
committerGitHub <noreply@github.com>2020-11-30 09:53:11 (GMT)
commit9f004634a2bf50c782e223e2eb386ffa769b901c (patch)
tree7b22497df4990d13d3d1707ccd12fc1da6a554a2 /Doc/c-api/tuple.rst
parent96545924780da34afc457bc22a869096af985ebf (diff)
downloadcpython-9f004634a2bf50c782e223e2eb386ffa769b901c.zip
cpython-9f004634a2bf50c782e223e2eb386ffa769b901c.tar.gz
cpython-9f004634a2bf50c782e223e2eb386ffa769b901c.tar.bz2
bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)
Diffstat (limited to 'Doc/c-api/tuple.rst')
-rw-r--r--Doc/c-api/tuple.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst
index bf751e44..c0c14f4 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)