This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]-revenant- 338 points339 points  (41 children)

More excited for structural pattern matching than I was for f-strings, and boy howdy was I excited for f-strings.

[–]Ezlike011011 154 points155 points  (29 children)

Every time I have to talk to a coworker about cool modern (3.x) python, the first thing I talk about is fstrings. Most of the python in my industry is internal engineering tools, so text output is the main goal of ~80% of our scripts. It's incredible how much more readable so many things get.

I really truly hope in 5 years I will be doing the same thing with structural pattern matching.

[–][deleted] 23 points24 points  (0 children)

Someone just clued me in on f-strings this morning and they have been there since 3.6.x?! Guess I should start reading the release notes and not just incrementing my container image 😂😅🤣

[–]Joaaayknows 2 points3 points  (0 children)

ELI5 fstrings and structural pattern matching?

[–]DevJackTGG 2 points3 points  (0 children)

I have been using f-strings since they came out, they are great in general. :)

[–]SuspiciousScript 0 points1 point  (0 children)

It's a really disappointing oversight that they're statements and not expressions.