This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Antony.Lee
Recipients Antony.Lee, docs@python
Date 2020-11-24.09:41:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Unlike `PySequence_GetItem`, `PyTuple_GetItem` does not support negative indices ("indexing from the end").  That is fine, but warrants a notice in the docs (as that behavior is certainly not obvious).
The same wording as for `PyList_GetItem` (changing "list" to "tuple") should be good enough (`PyList_GetItem` currently states: "The position must be non-negative; indexing from the end of the list is not supported. If index is out of bounds (<0 or >=len(list)), return NULL and set an IndexError exception.")
Date User Action Args
2020-11-24 09:41:26Antony.Leesetrecipients: + Antony.Lee, docs@python
2020-11-24 09:41:26Antony.Leesetmessageid: <>
2020-11-24 09:41:26Antony.Leelinkissue42451 messages
2020-11-24 09:41:24Antony.Leecreate