Pablo Galindo Salgado <[email protected]> added the comment:
Oh, this one is actually correct:
match ...:
case 42 as _:
pass
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"
----------
nosy: -miss-islington
_______________________________________
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