Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-38557: Improve documentation for list and tuple C API. #16925
Conversation
I assume that the re-wordings and additions are technically correct. They otherwise look good to me. |
@@ -111,17 +112,16 @@ List Objects | |||
Return a list of the objects in *list* containing the objects *between* *low* | |||
and *high*. Return *NULL* and set an exception if unsuccessful. Analogous | |||
to ``list[low:high]``. Negative indices, as when slicing from Python, are not | |||
supported. | |||
to ``list[low:high]``. Indexing from the end of the list is not supported. |
This comment has been minimized.
This comment has been minimized.
terryjreedy
Oct 26, 2019
Member
By itself, this is not obviously much of an improvement, but in the context of the earlier sentence for PyList_GetItem, "The position must be non-negative; indexing from the end of the list is not supported.", I think it is.
This comment has been minimized.
This comment has been minimized.
serhiy-storchaka
Oct 26, 2019
Author
Member
Technically, negative indices are supported. But they do not count from the end.
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Oct 26, 2019
Thanks @serhiy-storchaka for the PR |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Oct 26, 2019
GH-16933 is a backport of this pull request to the 3.8 branch. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Oct 26, 2019
GH-16934 is a backport of this pull request to the 3.7 branch. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Oct 26, 2019
GH-16935 is a backport of this pull request to the 2.7 branch. |
serhiy-storchaka commentedOct 25, 2019
•
edited by bedevere-bot
https://bugs.python.org/issue38557