DEV Community

loading...
Cover image for What's New in Python 3.10?

What's New in Python 3.10?

James Briggs
418 bio is a teapot
・1 min read

The Python 3.10 release has several new features like structural pattern matching, a new typing Union operator, and parenthesized context managers!

Python 3.10 development has stabilized and we can finally test out all of the new features that will be included in the final release.

We'll cover some of the most interesting additions to Python - structural pattern matching, parenthesized context managers, more typing, and the new and improved error messages.

Free link

Discussion (2)

Collapse
bw984 profile image
Brady Walters

Thanks for the article! I’m excited to replace some moderate elifs with switch in the near future. Each of the few times I had to relearn Python didn’t support switch It was surprising.

Collapse
hanpari profile image
Pavel Morava

It is not about the old switch at all like in C. It is more about exhaustive pattern matching coming from functional languages.

python.org/dev/peps/pep-0622/#rati...