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 vstinner
Recipients eric.smith, vstinner, Михаил Кыштымов
Date 2020-03-09.08:23:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583742182.61.0.534173229884.issue39909@roundup.psfhosted.org>
In-reply-to
Content
> assert var := None

It's good that this syntax is rejected: it looks like a typo (assert var == None). Moreover, it's part of of the PEP 572 design.
https://www.python.org/dev/peps/pep-0572/#exceptional-cases

Python works as expected, I suggest to close the issue as not a bug.
History
Date User Action Args
2020-03-09 08:23:02vstinnersetrecipients: + vstinner, eric.smith, Михаил Кыштымов
2020-03-09 08:23:02vstinnersetmessageid: <1583742182.61.0.534173229884.issue39909@roundup.psfhosted.org>
2020-03-09 08:23:02vstinnerlinkissue39909 messages
2020-03-09 08:23:02vstinnercreate