This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: sequence method .count() and .index() shoud be in immutable sequence method list.
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, s7v7nislands, terry.reedy
Priority: normal Keywords:

Created on 2009-09-10 06:46 by s7v7nislands, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg92471 - (view) Author: s7v7nislands (s7v7nislands) Date: 2009-09-10 06:46
In document 6.6.4. Mutable Sequence Types says:
The following operations are defined on mutable sequence types:
s.count(x) 	return number of i‘s for which s[i] == x 	 
s.index(x[, i[, j]]) 	return smallest k such that s[k] == x and i <= k
< j 	(4)

here, s.count() and s.index() maybe should in immutable sequence types
operations list.
msg92521 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2009-09-11 19:52
This is covered in point 4 of open issue #4966
History
Date User Action Args
2022-04-11 14:56:52adminsetgithub: 51123
2009-09-11 19:52:02terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg92521

resolution: duplicate
2009-09-10 06:46:23s7v7nislandscreate