Martin Panter added the comment:
See also Issue 11842 about the behaviour of slice.indices() in this situation,
and Issue 1446619 about fixing the documentation for reverse slices regarding
positive out-of-range indexes.
--
___
Python tracker
Martin Panter added the comment:
I think Steven’s main complaint is that it is hard to make a reversed slice
extend to the start of the original sequence, unless you omit (or use None as)
the endpoint:
>>> "01234567"[4:0:-1] # Includes index [4], stops before reaching index [0]
'4321'
>>> "01
Terry J. Reedy added the comment:
Steven, your initial 'sentence' is missing something needed to make it a proper
English sentence, and I cannot exactly guess what you meant. But your later
confusion is clear enough.
This tracker is for patching the Python docs and CPython code. I believe th