On 6/25/2010 1:14 PM, Dave Angel wrote:
the default behavior of += is to assign a new object with the new value,
rather than changing the previous object.

a = []
temp = a
a += [2]
temp
[2]

Alan Isaac

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

Reply via email to