Tuples & lists

Darrell Darrell at p98.f112.n480.z2.fidonet.org
Fri Jul 2 06:03:30 EDT 1999


From: "Darrell" <news at dorb.com>

Did an experiment on NT and lists and tuples took the same amount of space.
Humm ? Not what I expected.

--
--Darrell
Terry Reedy <tjreedy at udel.edu> wrote in message
news:7lh375$5ea$1 at news.udel.edu...
> 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