Lists vs tuples (newbie)
Hendrik van Rooyen
mail at microcorp.co.za
Thu May 24 04:24:20 EDT 2007
"Neil Cerutti" <h.... at yahoo.com> wrote:
> On 2007-05-22, Duncan Booth <duncan.booth at invalid.invalid> wrote:
> > "Hendrik van Rooyen" <mail at microcorp.co.za> wrote:
> >
> >> Aside from the hashing issue, there is nothing that a tuple can do
> >> that can't be done as well or better by a list.
> >
> > There are a few other cases where you have to use a tuple, for
> > example in a try..except statement the exception specification
> > must be an exception to be caught or a tuple of exception
> > specifications: a list won't work to catch multiple exceptions.
>
> I use tuples simply because of their mellifluous appellation.
>
I did not realise that you kept a bee...
:-)
- Hendrik
More information about the Python-list
mailing list