[Tutor] <var:data> assignment
alan.gauld at blueyonder.co.uk
Tue May 11 17:18:17 EDT 2004
> Correct because lists are not immutable. Python has a clear
> distinction in the way it handles mutable and imutable data.
Actually as Magnus pointed out it's not really the immutability
that's the issue here it's the internalisation of short strings
and low value integers. The fact that they happen to be immutable
is somewhat orthogonal to the discussion.
However I don't think that minor faux pas changes too much of
the rest of what I said!
More information about the Tutor