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 <>
> 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/", line 2
    case 42 as 1+1:
SyntaxError: expected ':'
Date User Action Args
2021-06-09 21:57:52pablogsalsetrecipients: + pablogsal, lys.nikolaou, miss-islington, brandtbucher
2021-06-09 21:57:52pablogsalsetmessageid: <>
2021-06-09 21:57:52pablogsallinkissue44368 messages
2021-06-09 21:57:52pablogsalcreate