Naive idiom questions

Roger Miller roger.miller at nova-sol.com
Thu Jan 31 19:33:24 EST 2008


On Jan 31, 11:48 am, Grant Edwards <gra... at visi.com> 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