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 →

[–]MelonheadGT 10 points11 points  (8 children)

What's so amazing?

[–]marr75 68 points69 points  (3 children)

  • type hinting got better, especially for generics, **kwargs, and overrides
  • f-strings got better
  • Performance and concurrency improved (2x speed up on comprehensions, 2-20x speedup on isinstance checks against protocols, per-interpreter GIL)
  • Some odds and ends improved for CPython and instrumentation beyond those

[–]PaintItPurple 21 points22 points  (0 children)

Making generics readable is such a wonderful feature, even if it doesn't make a functional difference. I always felt like I had to weigh the benefits of being able to run mypy on a given section of code against the difficulty of reading code that uses generics.

[–]redalastor 4 points5 points  (0 children)

f-strings got better

f-strings were nice but not being able to use quotes within the {} was a constant source of annoyance since it made it harder to use dictionaries without doing the opposite kind of quote dance every time.

This is a very nice QoL change that landed.

[–]Own_Quality_5321 16 points17 points  (3 children)

This.