Tuples & lists
Darrell
news at dorb.com
Fri Jul 2 14:03:30 EDT 1999
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