[New-bugs-announce] [issue42884] array.index() missing start and end

Daniel Nicorici report at bugs.python.org
Sun Jan 10 14:51:50 EST 2021


New submission from Daniel Nicorici <daniel.nicorici at 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 <report at bugs.python.org>
<https://bugs.python.org/issue42884>
_______________________________________


More information about the New-bugs-announce mailing list