Skip to content

Commit 9f00463

Browse files
authored
bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)
1 parent 9654592 commit 9f00463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/tuple.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Tuple Objects
5757
.. c:function:: PyObject* PyTuple_GetItem(PyObject *p, Py_ssize_t pos)
5858
5959
Return the object at position *pos* in the tuple pointed to by *p*. If *pos* is
60-
out of bounds, return ``NULL`` and set an :exc:`IndexError` exception.
60+
negative or out of bounds, return ``NULL`` and set an :exc:`IndexError` exception.
6161
6262
6363
.. c:function:: PyObject* PyTuple_GET_ITEM(PyObject *p, Py_ssize_t pos)

0 commit comments

Comments
 (0)