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 start and stop arguments to array.index()

Open an issue on the bug tracker and provide a patch.

See also:

https://bugs.python.org/issue28197
https://bugs.python.org/issue31942

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to