Message381716
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:26 | Antony.Lee | set | recipients:
+ Antony.Lee, docs@python |
2020-11-24 09:41:26 | Antony.Lee | set | messageid: <1606210886.35.0.910586888389.issue42451@roundup.psfhosted.org> |
2020-11-24 09:41:26 | Antony.Lee | link | issue42451 messages |
2020-11-24 09:41:24 | Antony.Lee | create | |
|