Help understanding the decisions *behind* python?

Hendrik van Rooyen hendrik at microcorp.co.za
Tue Jul 21 04:03:46 EDT 2009


On Monday 20 July 2009 21:26:07 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.

simplest is something like a point in the cartesian plane with
an associated attribute like colour.

- Hendrik





More information about the Python-list mailing list