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

R. David Murray report at bugs.python.org
Wed Aug 23 10:52:38 EDT 2017


R. David Murray added the comment:

I'm don't have a lot of experience with parsers, but I suspect that we consider the cost of making the grammar more complex to be more significant than the benefit we'd get from catching these at compile time.  And as Vedran says, defining what can be caught without breaking legitimate things is distinctly non-trivial.

I vote to just close this issue.  If you come up with a proposal we can reopen.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list