Issue 31952: Weird behavior on tupple item assignment (original) (raw)

Basically, I typed:

m = (list(), list())

then I got, this, as expected:

m[0] += [1] Traceback (most recent call last): File "<pyshell#8>", line 1, in m[0] += [1] TypeError: 'tuple' object does not support item assignment

but, when I checked the variable...

m ([1], [])


Saying the least, one can kind of assing a value to a tuple of lists and get the expected result, but with the trackback still showing up.