Re:Ask HN: Catching Up with Python – Resources?
by andrecp11 on Sunday March 28, 2021 @01:59PM
(#26612541)
What sorts of features from 3.8 and 3.8 have you been seeing regularly used?
Re:Ask HN: Catching Up with Python – Resources?
by musingsole on Monday March 29, 2021 @01:04PM
(#26624870)
Not sure the first version you're referencing...The biggest features that I've seen proliferate quickly in the past few releases are f-strings and dataclasses.
3.8's walrus operator will probably start popping up more once people calm down about how it looks funny. 3.9 has more minor tweaks and tricks. 3.10 will introduce pattern matching (case/switch statement) that python developers have been begging for (I HAVE NO IDEA WHY!!!???) for near a decade.
There are two kinds of programming languages: (i) where the official manual is clear and complete, and (ii) ones where it is not.
In a type (i) language you should read the manual while spinning at the gym and train yourself to be very fast to look up answers to questions like "how do I generate a random integer in the (3,7) range" in the official manual.
Books, blog posts, etc. tend to inject errors and also become stale over time. For instance there is a lot about Python 3.5 and 3.6.1 that you don't want to know. A Pythoner in 2021 could be working with anything from Py 3.9 to 3.7 or late 3.6.9. A book written to Python 3.7 is going to be a basically good foundation to work on, but I know Py 3.8 and 3.9 feature use is common in the wild and 3.10 is not far away.
If you learn the manual like the back of your hand, you can look up whatever version you need, what the changes are, etc.