Naive idiom questions

Roger Miller roger.miller at
Fri Feb 1 01:33:24 CET 2008

On Jan 31, 11:48 am, Grant Edwards <gra... at> wrote:
> I'm not sure what you're asking.  AFAIK, the main reason that
> strings are immutable is so they can be used as dict keys.

I think its more fundamental than that.  If strings were mutable
you would be constantly worrying about whether changing a string
here might affect something there, or whether to write x = y or
x = copy.copy(y).  Or condsider

More information about the Python-list mailing list