classification
Title: array.index should take optional start and stop indices like for lists
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Add start and stop parameters to the array.index()
View: 31956
Assigned To: Nosy List: kyuupichan, xtreak
Priority: normal Keywords:

Created on 2018-12-15 09:02 by kyuupichan, last changed 2018-12-15 09:33 by xtreak. This issue is now closed.

Messages (4)
msg331891 - (view) Author: Neil Booth (kyuupichan) * Date: 2018-12-15 09:02
list.index has signature:

   index(value, [start, [stop]])

array.index from the array module should provide the same facility
msg331892 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python triager) Date: 2018-12-15 09:10
Please see issue31956 that has an open PR and discussion.
msg331893 - (view) Author: Neil Booth (kyuupichan) * Date: 2018-12-15 09:22
Sorry for the duplicate; a simple search didn't find it.
msg331894 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python triager) Date: 2018-12-15 09:33
No problem. I adding duplicate as resolution linking to issue31956. Feel free to add yourself on issue31956 to keep track of it.

Thanks
History
Date User Action Args
2018-12-15 09:33:42xtreaksetsuperseder: Add start and stop parameters to the array.index()
resolution: duplicate
messages: + msg331894
2018-12-15 09:22:55kyuupichansetstatus: open -> closed

messages: + msg331893
stage: resolved
2018-12-15 09:10:18xtreaksetnosy: + xtreak
messages: + msg331892
2018-12-15 09:02:55kyuupichancreate