Re:I'm Switching to Python and Actually Liking It
by arthurcolle on Wednesday July 16, 2025 @12:05PM
(#44583832)
I always forget this syntax exists. When was this introduced?
[ Parent
| on HN ]
Re:I'm Switching to Python and Actually Liking It
by gvalkov on Wednesday July 16, 2025 @12:08PM
(#44583878)
In Python 3.8 - https://peps.python.org/pep-0572/
Re:I'm Switching to Python and Actually Liking It
by cranium on Wednesday July 16, 2025 @12:15PM
(#44583997)
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
Re:I'm Switching to Python and Actually Liking It
by indymike on Wednesday July 16, 2025 @03:10PM
(#44585779)
You forgot to end with "goo goo g'joob" or the less correct Simon and Garfunkel version "coo coo ca choo".
Re:I'm Switching to Python and Actually Liking It
by Iwan-Zotow on Wednesday July 16, 2025 @07:01PM
(#44587756)
And for lambdas
Re:I'm Switching to Python and Actually Liking It
by DangitBobby on Wednesday July 16, 2025 @12:08PM
(#44583879)
October 2019 in Python 3.8