Pablo Galindo Salgado <[email protected]> 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.
No, the same happens with other targets such as:
File "/home/pablogsal/github/python/master/lel.py", line 2
case 42 as 1+1:
^
SyntaxError: expected ':'
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44368>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com