tuples vs lists

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat Jan 8 08:46:04 EST 2005

worzel a écrit :
> I get what the difference is between a tuple and a list, but why would I 
> ever care about the tuple's immuutability?

Because, from a purely pratical POV, only an immutable object can be 
used as kay in a dict. So you can use tuples for 'composed key'.


More information about the Python-list mailing list