[issue44368] Invalid mapping patterns give confusing SyntaxErrors

Brandt Bucher report at bugs.python.org
Wed Jun 9 17:31:14 EDT 2021


Brandt Bucher <brandtbucher at gmail.com> added the comment:

Could we just try parsing "as _" and raise if so? That wouldn't conflict with any existing rules, and that way we could actually have a helpful error message.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44368>
_______________________________________


More information about the Python-bugs-list mailing list