4 ms·
I always forget this syntax exists. When was this introduced?
by arthurcolle 1y ago
I always forget this syntax exists. When was this introduced?
- gvalkov 1y agoIn Python 3.8 - https://peps.python.org/pep-0572/ https://peps.python.org/pep-0572/
- DangitBobby 1y agoOctober 2019 in Python 3.8 https://docs.python.org/3/whatsnew/3.8.html https://docs.python.org/3/whatsnew/3.8.html
- cranium 1y agoThe 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
- deleted 1y ago[deleted]
- indymike 1y agoYou forgot to end with "goo goo g'joob" or the less correct Simon and Garfunkel version "coo coo ca choo".
- Iwan-Zotow 1y agoAnd for lambdas