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 aroberge, pablogsal, serhiy.storchaka
Date 2021-04-10.18:08:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618078128.71.0.996510090352.issue43797@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2021-04-10 18:08:48pablogsalsetrecipients: + pablogsal, aroberge, serhiy.storchaka
2021-04-10 18:08:48pablogsalsetmessageid: <1618078128.71.0.996510090352.issue43797@roundup.psfhosted.org>
2021-04-10 18:08:48pablogsallinkissue43797 messages
2021-04-10 18:08:48pablogsalcreate