Notice: This page displays a fallback because interactive scripts did not run. Possible causes include disabled JavaScript or failure to load scripts or stylesheets.

Python 3.10.4

Note: Python 3.10.4 has been superseded by Python 3.10.19.

Release date: March 24, 2022

Python 3.10 release logo

This is the fourth maintenance release of Python 3.10

Python 3.10.4 is the newest major release of the Python programming language, and it contains many new features and optimizations.

This is a special release that fixes a regression introduced by BPO 46968 which caused Python to no longer build on Red Hat Enterprise Linux 6. There are only 10 other bugfixes on top of 3.10.3 in this release.

Major new features of the 3.10 series, compared to 3.9

Among the new major new features and changes so far:

  • PEP 623 -- Deprecate and prepare for the removal of the wstr member in PyUnicodeObject.
  • PEP 604 -- Allow writing union types as X | Y
  • PEP 612 -- Parameter Specification Variables
  • PEP 626 -- Precise line numbers for debugging and other tools.
  • PEP 618 -- Add Optional Length-Checking To zip.
  • bpo-12782: Parenthesized context managers are now officially allowed.
  • PEP 632 -- Deprecate distutils module.
  • PEP 613 -- Explicit Type Aliases
  • 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
  • PEP 624 -- Remove Py_UNICODE encoder APIs
  • PEP 597 -- Add optional EncodingWarning

bpo-38605: from __future__ import annotations (PEP 563) used to be on this list in previous pre-releases but it has been postponed to Python 3.11 due to some compatibility concerns. You can read the Steering Council communication about it here to learn more.

More resources

And now for something completely different

Positronium is a system consisting of an electron and its anti-particle, a positron, bound together into an exotic atom, specifically an onium. The system is unstable: the two particles annihilate each other to predominantly produce two or three gamma-rays, depending on the relative spin states. The energy levels of the two particles are similar to that of the hydrogen atom (which is a bound state of a proton and an electron). However, because of the reduced mass, the frequencies of the spectral lines are less than half of those for the corresponding hydrogen lines.

Full Changelog

Files

Version Operating system Description File size GPG MD5 checksum
Gzipped source tarball Source release 24.4 MB SIG 7011fa5e61dc467ac9a98c3d62cfe2be
XZ compressed source tarball Source release 18.4 MB SIG 21f2e113e087083a1e8cf10553d93599
macOS 64-bit universal2 installer macOS for macOS 10.9 and later 38.5 MB SIG 5dd5087f4eec2be635b1966330db5b74
Windows installer (64-bit) Windows Recommended 27.2 MB SIG 53fea6cfcce86fb87253364990f22109
Windows installer (32-bit) Windows 26.1 MB SIG 977b91d2e0727952d5e8e4ff07eee34e
Windows help file Windows 8.8 MB SIG 758b7773027cbc94e2dd0000423f032c
Windows embeddable package (64-bit) Windows 8.1 MB SIG bf4e0306c349fbd18e9819d53f955429
Windows embeddable package (32-bit) Windows 7.2 MB SIG 4c1cb704caafdc5cbf05ff919bf513f4