On 02/11/2020 01:49 PM, Steven D'Aprano wrote:
Oh, definitely for the best. This now allows us to write complex assertions much more easily and efficiently:assert log(flag := complex_expression) or flag
That doesn't seem very useful: for that assert to fail, `flag` would have to be falsey, and if falsey, then surely the log of it is not helpful? -- ~Ethan~ _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/N5BMTKG6KHNRDFVCISQ2YFFXK33YR7I2/ Code of Conduct: http://python.org/psf/codeofconduct/
