count method only for lists?

Stuart Reynolds S.I.Reynolds at cs.bham.ac.uk
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 (2.1.5.2
Mutable Sequence Types) only describes lists and not mutable sequence
types.


Stuart




More information about the Python-list mailing list