The unPEP: List-Tuple Unification

Raymond Hettinger othello at
Fri Jul 20 14:03:37 EDT 2001

Steve Holden wrote:

> No asbestos required, but what's tha advantage over
>     mylist = tuple(mylist)
> just-wonderingl-ly y'rs  - steve

Good question. Immutable lists don't give you much over
what you get now from tuples (except the automatic coercion
for dictionary keys).

The big advantage comes from deprecating tuples, simplifying
the language, getting rid of (,) and eliminating the need to remember
which things require tuples, which require lists, and which allow
both (quick, what does the % formatting operator require?).

never-met-a-list-i-didnt-like,ly y'rs  -- Raymond

More information about the Python-list mailing list