list vs tuple

Rikard Bosnjakovic bos at hack.org
Wed Mar 28 09:46:18 EST 2001


deadmeat wrote:

> so is that the only difference?

Both are sequences, but tuples are "read-only", that's the only
difference (except for the in-place-methods which requires mutability).

-- 
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