Serhiy Storchaka <[email protected]> added the comment:
I tried to add
| a=NAME '=' {
RAISE_SYNTAX_ERROR_KNOWN_LOCATION(
a, "invalid syntax. Maybe you meant '==' or ':=' instead of '='?") }
| a=bitwise_or '=' {
RAISE_SYNTAX_ERROR_KNOWN_LOCATION(
a, "invalid syntax. Maybe you meant '==' instead of '='?") }
in invalid_named_expression, but it does not have any effect.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43797>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com