Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
I think it actually will be very useful to explain that these cases are invalid in the Syntax error, which will also solve this problem. This on the other hand shows a bigger problem: any generic syntax error that happens inside "match" will probably end identifying the keyword as a name, even if we don't have specific errors, the parser will point to it and complain about "match". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44368> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com