Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: