[issue42884] array.index() missing start and end

2022-03-19 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Add start and stop parameters to the array.index()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42884] array.index() missing start and end

2021-01-10 Thread Zackery Spytz


Zackery Spytz  added the comment:

This seems like a duplicate of bpo-31956.

--
nosy: +ZackerySpytz

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42884] array.index() missing start and end

2021-01-10 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42884] array.index() missing start and end

2021-01-10 Thread Daniel Nicorici


New submission from Daniel Nicorici :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com