Python 3.10 Release History

Python 3.10 (released October 4, 2021) introduced one of the most significant syntax upgrades in recent years, along with improvements in typing and debugging.

Major Highlight: Structural Pattern Matching (match / case)

The biggest feature is PEP 634–636, introducing pattern matching.

This is not just a switch statement — it allows matching based on data structure and shape:

def http_error(status):
    match status:
        case 400:
            return "Bad request"
        case 404:
            return "Not found"
        case _:
            return "Something's wrong"

Pattern matching enables programs to branch based on structure and extract values declaratively ([Python documentation][1])

Language and Typing

Interpreter and Debugging

Standard Library

Performance Improvements

Deprecations

Subversions log


Official 3.10 documentation