This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author exarkun
Recipients exarkun, mattrussell
Date 2010-02-11.15:28:21
SpamBayes Score 0.0002456128
Marked as misclassified No
Message-id <1265902103.31.0.502317227619.issue7910@psf.upfronthosting.co.za>
In-reply-to
Content
Your output looks fishy.  Anyway, the behavior of += isn't a bug:

>>> a = b = (1, 2)
>>> a += (1, 2, 3)
>>> a
(1, 2, 1, 2, 3)
>>> a is b
False
>>> 

It's confusing, to be sure, but no mutation is going on.  += is only in-place if applied to something that supports mutation this way (by implementing __iadd__).
History
Date User Action Args
2010-02-11 15:28:23exarkunsetrecipients: + exarkun, mattrussell
2010-02-11 15:28:23exarkunsetmessageid: <1265902103.31.0.502317227619.issue7910@psf.upfronthosting.co.za>
2010-02-11 15:28:21exarkunlinkissue7910 messages
2010-02-11 15:28:21exarkuncreate