Help understanding the decisions *behind* python?

Marcus Wanner marcusw at cox.net
Mon Jul 20 16:12:45 EDT 2009


On 7/20/2009 3:26 PM, Phillip B Oldham wrote:
> On Jul 20, 6:08 pm, Duncan Booth <duncan.bo... at invalid.invalid> wrote:
>> The main reason why you need both lists and tuples is that because a tuple
>> of immutable objects is itself immutable you can use it as a dictionary
>> key.
> 
> Really? That sounds interesting, although I can't think of any real-
> world cases where you'd use something like that.
Actually, that would be very useful in the program from "any suggestions 
to synchronize typed text and speech ?"...i.e. have a dictionary key of 
(hour, minute, second).

Marcus



More information about the Python-list mailing list