[Python-checkins] bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)
vstinner
webhook-mailer at python.org
Mon Nov 30 04:53:19 EST 2020
https://github.com/python/cpython/commit/9f004634a2bf50c782e223e2eb386ffa769b901c
commit: 9f004634a2bf50c782e223e2eb386ffa769b901c
branch: master
author: Yasser A <i_r7al at me.com>
committer: vstinner <vstinner at python.org>
date: 2020-11-30T10:53:11+01:00
summary:
bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)
files:
M Doc/c-api/tuple.rst
diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst
index bf751e44acde0..c0c14f480d39b 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)
More information about the Python-checkins
mailing list