You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
danielnicorici commentedon Jan 10, 2021
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.
ZackerySpytz commentedon Jan 10, 2021
This seems like a duplicate of bpo-31956.