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, pablogsal
Date 2021-06-09.21:24:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oh, this one is actually correct:

match ...:
    case 42 as _:

  File "<stdin>", line 2
    case 42 as _:
SyntaxError: expected ':'

That is literally expecting a ":" and that's the error. It has identified "case 42" correctly and it now expects a ":". Is just that the error marker is wrong because it has reached the "as and _" as part of the parsing so the error is there.

That is going to be a bit tricky to "fix"
Date User Action Args
2021-06-09 21:24:52pablogsalsetrecipients: + pablogsal, lys.nikolaou, brandtbucher
2021-06-09 21:24:52pablogsalsetmessageid: <>
2021-06-09 21:24:52pablogsallinkissue44368 messages
2021-06-09 21:24:52pablogsalcreate