[issue37487] PyList_GetItem() document regarding index
Terry J. Reedy
report at bugs.python.org
Fri Jul 5 16:10:22 EDT 2019
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Good catch. (In the future, try to include the url, as below.)
The full sentence in question, at https://docs.python.org/3/c-api/list.html#c.PyList_GetItem, is "The position must be positive, indexing from the end of the list is not supported." 'positive' should be 'non-negative'. The next sentence deal with out-of-bounds positions, and these could be specified as '(< 0, > len(list))'
----------
nosy: +terry.reedy
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37487>
_______________________________________
More information about the Python-bugs-list
mailing list