Message205945
Observed behaviour:
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
>>> a = (1, [2,3])
>>> a[1] += [4,5]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'tuple' object does not support item assignment
>>> a
(1, [2, 3, 4, 5])
Expected behaviour: tuple remains unchanged |
|
Date |
User |
Action |
Args |
2013-12-12 08:37:00 | Dmitrii.Dimandt | set | recipients:
+ Dmitrii.Dimandt |
2013-12-12 08:37:00 | Dmitrii.Dimandt | set | messageid: <1386837420.1.0.0855964875306.issue19958@psf.upfronthosting.co.za> |
2013-12-12 08:36:59 | Dmitrii.Dimandt | link | issue19958 messages |
2013-12-12 08:36:59 | Dmitrii.Dimandt | create | |
|