[issue31952] Weird behavior on tupple item assignment

2017-11-05 Thread Lucas Bertoldo

Change by Lucas Bertoldo <lvcas.berto...@gmail.com>:


--
versions: +Python 2.7, Python 3.5

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31952>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31952] Weird behavior on tupple item assignment

2017-11-05 Thread Lucas Bertoldo

New submission from Lucas Bertoldo <lvcas.berto...@gmail.com>:

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.

--
components: Interpreter Core
files: python bug.png
messages: 305613
nosy: Lucas Bertoldo
priority: normal
severity: normal
status: open
title: Weird behavior on tupple item assignment
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file47252/python bug.png

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31952>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com