Joe Strout wrote:

That's not necessarily true.  If you have

  a = "par" + "rot"
  b = "parrot"

then, most likely (though it depends on how clever the compiler optimizations are), there are two different string objects containing the data "parrot".

>>> a='par'+'rot'
>>> b='parrot'
>>> a is b
True

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

Reply via email to