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 ronaldoussoren
Recipients andy.chugunov, ronaldoussoren
Date 2013-05-14.08:52:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368521530.55.0.293664245101.issue17973@psf.upfronthosting.co.za>
In-reply-to
Content
This is a side effect to the way the in place operators work.

Basically "a[0] += [3]" is evaluated as:

    a[0] = a[0].__iadd__([3])

The call to __iadd__ succeeds, which is why the list is updated, but you get an exception when the interpreter tries to update item 0 of the tuple.
History
Date User Action Args
2013-05-14 08:52:10ronaldoussorensetrecipients: + ronaldoussoren, andy.chugunov
2013-05-14 08:52:10ronaldoussorensetmessageid: <1368521530.55.0.293664245101.issue17973@psf.upfronthosting.co.za>
2013-05-14 08:52:10ronaldoussorenlinkissue17973 messages
2013-05-14 08:52:10ronaldoussorencreate