When are immutable tuples *essential*? Why can't you just use lists *everywhere* instead?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Apr 20 13:09:52 EDT 2007


seberino at spawar.navy.mil wrote:

> Please help me think of an example where immutable tuples are
> essential.

When used as dictionary keys (also everywhere else where they must
be in a constant order).

Yes, this *is* used in practice.
 
Regards,


Björn

-- 
BOFH excuse #14:

sounds like a Windows problem, try calling Microsoft support




More information about the Python-list mailing list