index() and count() methods

Douglas Zongker dougz at cs.washington.edu
Fri Jun 14 23:00:15 CEST 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
curious.

thanks,
dz






More information about the Python-list mailing list