Re:WTFPython: Exploring and understanding Python through sur...
by digisign on Tuesday May 31, 2022 @01:45PM
(#31572500)
Would have been more Pythonic as:
[ Parent
| on HN ]
Re:WTFPython: Exploring and understanding Python through sur...
by aix1 on Wednesday June 01, 2022 @01:26AM
(#31578448)
I didn't recognize this use of "as" as valid Python, but tried it in 3.9 just to be sure. Got a syntax error (as expected).
I am not fully up to speed with 3.10, but quickly checked the docs and it doesn't appear to have been added in 3.10 either.
Let me know if I'm missing something.