[issue31263] Assigning to subscript/slice of literal is permitted

Vedran Čačić report at bugs.python.org
Thu Aug 24 02:57:28 EDT 2017


Vedran Čačić added the comment:

I'm really curious about why exactly do you think that behavior is _incorrect_? Unfortunate, maybe. Similar to a mutable default argument. But it is completely consistent with Python semantics.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31263>
_______________________________________


More information about the Python-bugs-list mailing list