Hacker News new | ask | show | jobs
by arthurcolle 332 days ago
I always forget this syntax exists. When was this introduced?
3 comments

The Walrus operator! Introduced in Python 3.8 according to the PEP 572.

Really nice to combine 1) checking if something exists and 2) act on it

You forgot to end with "goo goo g'joob" or the less correct Simon and Garfunkel version "coo coo ca choo".
And for lambdas