Re: [Python-ideas] array.array.index() and Sequence ABC

2017-11-06 Thread Serhiy Storchaka
06.11.17 11:17, Niki Spahiev пише: I noticed that array.index() method takes single argument in python 3.6, while Sequence protocol specifies 2 optional arguments after the first. example from list: L.index(value, [start, [stop]]) -> integer -- return first index of value. I propose adding st

[Python-ideas] array.array.index() and Sequence ABC

2017-11-06 Thread Niki Spahiev
Hello, I noticed that array.index() method takes single argument in python 3.6, while Sequence protocol specifies 2 optional arguments after the first. example from list: L.index(value, [start, [stop]]) -> integer -- return first index of value. I propose adding start and stop arguments to a