Why are tuples immutable?
Antoon Pardon
apardon at forel.vub.ac.be
Mon Dec 20 06:03:16 EST 2004
On 2004-12-17, John Roth <newsgroups at jhrothjr.com> wrote:
> I came in on this thread a bit late. The strictly
> pragmatic answer to the question in the
> header should be obvious.
>
> If tuples were mutable, then there would be
> no difference between tuples and lists, so
> there would be no need for tuples.
Not exactly. As I understood the OP only wanted
the various components to be mutable but not the
length of a tuple.
--
Antoon Pardon
More information about the Python-list
mailing list