mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)
This commit is contained in:
parent
9654592478
commit
9f004634a2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue