[issue31952] Weird behavior on tupple item assignment

2017-11-05 Thread Emanuel Barry
Emanuel Barry added the comment: This is a known issue, and is properly explained here: https://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works -- nosy: +ebarry resolution: -> not a bug stage: -> resolved

[issue31952] Weird behavior on tupple item assignment

2017-11-05 Thread Lucas Bertoldo
Change by Lucas Bertoldo : -- versions: +Python 2.7, Python 3.5 ___ Python tracker ___

[issue31952] Weird behavior on tupple item assignment

2017-11-05 Thread Lucas Bertoldo
New submission from Lucas Bertoldo : Basically, I typed: >>> m = (list(), list()) then I got, this, as expected: >>> m[0] += [1] Traceback (most recent call last): File "", line 1, in m[0] += [1] TypeError: 'tuple' object does not support item