Tuple question

Peter Hansen peter at engcorp.com
Thu Sep 2 13:17:00 EDT 2004


Will McGugan wrote:
> Why is that a tuple doesnt have the methods 'count' and 'index'? It 
> seems they could be present on a immutable object.
> 
> I realise its easy enough to convert the tuple to a list and do this, 
> I'm just curious why it is neccesary..

Please see these recent threads, and read the FAQ:

http://groups.google.ca/groups?threadm=mailman.2685.1093979591.5135.python-list%40python.org

and

http://groups.google.ca/groups?threadm=938a4680.0409011617.e9f9ee2%40posting.google.com

-Peter



More information about the Python-list mailing list