Possible Duplicate:
What's the difference between list and tuples in Python?
I've got just theoretical question: If I say that tuples are just immutable lists, how am I wrong (or am I not?)?
I know that tuples are immutable for only some level: if I have a tuple with a mutable object in it (list, python object, whatever) - it is somehow mutable, because I can change value of that object, but still - tuple structure, its pointers to elements stays constant, so tuple itself is immutable. I know that, you dont have to explain this.
As far as I get it, besides mutability - there are no differences. For both types operator + returns adequate structure made of elements of operands, in order, += operator works ass well, both can be accessed with simple indexes, or with slices, both responds to len(), map() (this is a little tricky: map(foo, tuple) returns list, not tuple. I think I get the reason for such a behavior, but still its worth mentioning), all(), any(), etc...
So - the same functionality, a little different syntax, main difference in mutability. Is that right? Or did I miss something?