STINNER Victor <vstin...@python.org> added the comment:
> 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. ---------- nosy: +vstinner _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39909> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com