New submission from Daniel Nicorici <daniel.nicor...@gmail.com>:

Add support for array.index(x [,start [,end]]). Adding start and end would 
allow to loop thru the entire array (and not start all the time from 0).


Currently, is array.index(x) (and it returns the smallest i such that i is the 
index of the first occurrence of x in the array). 


For example, bytearray.index() has start and end and list.index() has also 
start and end, but for some reason start and end are missing from array.index.

----------
messages: 384775
nosy: daniel.nicorici
priority: normal
severity: normal
status: open
title: array.index() missing start and end
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42884>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to