[issue6874] sequence method .count() and .index() shoud be in immutable sequence method list.

s7v7nislands report at bugs.python.org
Thu Sep 10 08:46:24 CEST 2009


New submission from s7v7nislands <s7v7nislands at gmail.com>:

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.

----------
assignee: georg.brandl
components: Documentation
messages: 92471
nosy: georg.brandl, s7v7nislands
severity: normal
status: open
title: sequence method  .count() and .index() shoud be in immutable sequence method list.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6874>
_______________________________________


More information about the Python-bugs-list mailing list