[issue44541] collections.abc.Sequence index implementation

2021-06-30 Thread Maciej Kopeć
New submission from Maciej Kopeć : Hello, https://github.com/python/cpython/blob/3.9/Lib/_collections_abc.py#L1012 Shouldn't the loop condition be i <= 0 not i < 0? The implementation now is causing not to search in 1-element sequences, since it raises ValueError. Please let me k

[issue44541] collections.abc.Sequence index implementation

2021-06-30 Thread Maciej Kopeć
Maciej Kopeć added the comment: Sorry for the hastily posted issue, when stop is not given this should work properly, and since stop is exclusive in python, this shall be expected behaviour. -- resolution: -> not a bug ___ Python tracker <