The Python 3.10 release team has announced the availability of Python 3.10.0, the newest major release of the Python programming language. This release contains new features and optimizations. There are upgrades and major changes and features in 3.10 that weren’t in 3.9.
So, what’s new?
- PEP 597 – Add optional EncodingWarning
- PEP 604 – Allow writing union types as X | Y
- PEP 612 – Parameter Specification Variables
- PEP 613 – Explicit Type Aliases
- PEP 618 – Add Optional Length-Checking To zip.
- bpo-12782: Parenthesized context managers are now officially allowed.
- PEP 624 – Remove Py_UNICODE encoder APIs
- PEP 623 – Deprecate and prepare for the removal of the wstr member in PyUnicodeObject.
- PEP 626 – Precise line numbers for debugging and other tools.
- PEP 632 – Deprecate distutils module.
- PEP 634 – Structural Pattern Matching: Specification
- PEP 635 – Structural Pattern Matching: Motivation and Rationale
- PEP 636 – Structural Pattern Matching: Tutorial
- PEP 644 – Require OpenSSL 1.1.1 or newer
One of the most significant additions to the language syntax is structural pattern matching, further expanding the range of possibilities and making it possible to write code that encompasses various scenarios fast.
Python’s place in the world
Since at least 2020, the electrical engineering magazine IEEE Spectrum has ranked Python the most popular language. The potential for it to become the most popular computer programming language and join C and Java as the only other languages to ever take the crown.
The rankings do differ from one index to another, but Python is prevalent. It is one of the languages one can learn when considering a career in data science, Python development, product management, education, and more.