Skip to main content

Versions

Quick index of built-in Python version in each Linux distribution and changes made in each minor Python releases.

Linux dist Pythons

PythonDebianUbuntuCent OSFedoraAlpine
3.414.04 (trusty)
3.59 (stretch)16.04 (xenial)
3.618.04 (bionic)73.9
3.710 (buster)3.10
3.820.04 (focal)323.11
3.911 (bullseye)21.04 (hirsute)33, 343.14, 3.15
3.1022.04 (jammy)35, 363.16, 3.17
3.1112 (bookworm)23.04 (lunar)37, 383.18
3.1239

Python 3.12

  • type statement (ref)
  • Multiline, Nested, Blackslash-compatible f-string (ref)
  • "Did you mean..." error message (ref)
  • @override decorator (ref)

Python 3.11

  • Built-in tomllib (ref)
  • typing.reveal_type (ref)
  • typing.Self (ref)
  • typing.Never (ref)

Python 3.10

  • SytaxError hint (ref)
  • match, switch a.k.a. Structural Pattern Matching (ref)
  • Vertical bar (|) as type hint for Union (ref)
  • strict in zip()
  • correlation(), covariance(), linear_regression() in statistics (ref)
  • Counter()'s new method: total() (ref)

Python 3.9

Python 3.8

  • Warlus operator: := (Ref)

Python 3.7

  • New reserved keyword: async, await (Ref)
  • Dataclasses (Doc)
  • nano-class time functions (Ref)

Python 3.6

  • dict maintain insertion order by default (Doc, Ref)
  • pathlib integrates with open() (Ref)