"ssecorp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
so if strings were mutable and i did
a = b = "foo"
and then did
a += "bar"
then a and b would be foobar?

This can be demonstrated with a list of characters, which *is* mutable:

a = b = list('foo')
a += list('bar')
a
['f', 'o', 'o', 'b', 'a', 'r']
b
['f', 'o', 'o', 'b', 'a', 'r']

--Mark

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to