index() and count() methods

Douglas Zongker dougz at
Fri Jun 14 17:00:15 EDT 2002

Apologies if this is a FAQ, but I haven't run across an answer.

Why are index() and count() methods of only mutable sequences, rather
than all sequences?  I ran into a situation today where using index()
on a tuple would have been nice.  It was easy to work around; I'm just


More information about the Python-list mailing list