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 eric.smith
Recipients eric.smith, Михаил Кыштымов
Date 2020-03-09.08:14:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I believe this is by design, as is the same restriction on statement-level assignment expressions. And if requiring parens discourages the use of assignment expressions in asserts, I think that's a good thing.

Why not just use the workaround you've already identified?
Date User Action Args
2020-03-09 08:14:11eric.smithsetrecipients: + eric.smith, Михаил Кыштымов
2020-03-09 08:14:11eric.smithsetmessageid: <>
2020-03-09 08:14:11eric.smithlinkissue39909 messages
2020-03-09 08:14:11eric.smithcreate