Ezio Melotti added the comment:
See
https://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works
--
nosy: +ezio.melotti
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Pyth
New submission from Владимир Тырин:
This behavior seems to be very strange.
>>> l = [1, 2, 3]
>>> t = ('a', l)
>>> t
('a', [1, 2, 3])
>>> t[1] += [4]
Traceback (most recent call last):
File "", line 1, in
TypeError: 'tuple' object does not support item assignment
>>> t
('a', [1, 2, 3, 4])
-