count method only for lists?

Stuart Reynolds S.I.Reynolds at
Thu Aug 26 19:47:23 CEST 1999

Does anyone know why there the count method is only defined for mutable
sequences (i.e. lists) and not strings and tuples? And for that matter,
index too? It seems as though the Python Library Reference (
Mutable Sequence Types) only describes lists and not mutable sequence


More information about the Python-list mailing list