
On Mon, Nov 8, 2021 at 11:22 PM Rob Cliffe via Python-ideas < python-ideas@python.org> wrote:
I have more than once advocated x:=default (and there is no clash with the walrus operator, even if others have said/implied that there is).
not a clash, but you could have a walrus in the default expression, which could be pretty visually confusing. On the other hand, maybe that's a really bad idea anyway. And otherwise I like it. BTW, => would have a similar problem if it's adopted as a shorter way to spell lambda. And that would be worse, as putting a lambda in a default depression might be good style in some cases :-) -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython