Tuples & lists

Terry Reedy Terry.Reedy at p98.f112.n480.z2.fidonet.org
Thu Jul 1 21:04:37 EDT 1999


From: tjreedy at udel.edu (Terry Reedy)

In article <377bbde1 at news.xtml.co.uk>, nick at NOSPAMvideosystem.co.uk says...

>Why both having tuples and lists? As far as I can see there're the same, but
>tuples are read only..? Have I missed something in the tutorial?

There is probably something in the the FAQ.  BAsically, tuples are stored 
more compactly and can be used as dictionary keys (because they ARE 
readonly). 

TJR




More information about the Python-list mailing list