Message189202
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. |
|
Date |
User |
Action |
Args |
2013-05-14 08:52:10 | ronaldoussoren | set | recipients:
+ ronaldoussoren, andy.chugunov |
2013-05-14 08:52:10 | ronaldoussoren | set | messageid: <1368521530.55.0.293664245101.issue17973@psf.upfronthosting.co.za> |
2013-05-14 08:52:10 | ronaldoussoren | link | issue17973 messages |
2013-05-14 08:52:10 | ronaldoussoren | create | |
|