What is the point of the slice.indices method, since we have the following equality?
s = slice(start, stop, step)
assert range(*s.indices(length)) == range(length)[s]
What is the point of the slice.indices method, since we have the following equality?
s = slice(start, stop, step)
assert range(*s.indices(length)) == range(length)[s]