Why are tuples immutable?

John Roth newsgroups at jhrothjr.com
Fri Dec 17 16:06:49 EST 2004


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.

Whether you think an immutable list is
worth while is a different question.

John Roth




More information about the Python-list mailing list