Pablo Galindo Salgado <[email protected]> added the comment:
> in invalid_named_expression, but it does not have any effect.
That is because the rule for named_expressions are:
named_expression[expr_ty]:
| a=NAME ':=' ~ b=expression
| expression !':='
| invalid_named_expression
and the second alternative (| expression !':=') succeeds with an assignment,
not letting the invalid_named_expression run
----------
_______________________________________
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