[issue43836] range.index doesn't support start/stop optional arguments

2021-04-14 Thread Ammar Askar
Ammar Askar added the comment: Marked as a duplicate. Kaleb, would you mind posting your comment on the original bug #28197? -- nosy: +ammar2 resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add start and stop parameters to the range.index() ABC met

[issue43836] range.index doesn't support start/stop optional arguments

2021-04-14 Thread Kaleb Barrett
Kaleb Barrett added the comment: And so it is... There is also a PR open with a solution from 2017. https://github.com/python/cpython/pull/4378/files. Can this get reviewed? The rationalizations against solving this bug stated in the original issue are weak, range.index *is* useful. I use ra

[issue43836] range.index doesn't support start/stop optional arguments

2021-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: Duplicate of #28197? -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43836] range.index doesn't support start/stop optional arguments

2021-04-13 Thread Kaleb Barrett
New submission from Kaleb Barrett : The range builtin type is a collections.abc.Sequence, which in Python 3.5 added the optional start and stop arguments to the index method of Sequences. However, range.index does not support these optional arguments required by Sequence. I noticed this when