list vs tuple
Rikard Bosnjakovic
bos at hack.org
Wed Mar 28 08:48:03 EST 2001
deadmeat wrote:
> A tuple seems to be a very basic list, so unless it's faster, what's the
> point of it?
Tuples are immutable, lists are not. With tuples you get some sort of
integrity, since you can't change a tuple "by mistake" by some other
reference in your program. With lists, there is no such safety.
--
Rikard Bosnjakovic - http://a214.ryd.student.liu.se/cv/ - ICQ: 1158217
Anyone sending unwanted advertising e-mail to my address will be
charged $250 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.
More information about the Python-list
mailing list