This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients brandtbucher, lys.nikolaou, miss-islington, pablogsal
Date 2021-06-09.21:57:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623275872.9.0.838170299324.issue44368@roundup.psfhosted.org>
In-reply-to
Content
> 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 ':'
History
Date User Action Args
2021-06-09 21:57:52pablogsalsetrecipients: + pablogsal, lys.nikolaou, miss-islington, brandtbucher
2021-06-09 21:57:52pablogsalsetmessageid: <1623275872.9.0.838170299324.issue44368@roundup.psfhosted.org>
2021-06-09 21:57:52pablogsallinkissue44368 messages
2021-06-09 21:57:52pablogsalcreate