Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.

Python 3.11.5

Note: Python 3.11.5 has been superseded by Python 3.11.14.

Release date: Aug. 24, 2023

Python 3.11 release logo

This is the fifth maintenance release of Python 3.11

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

Security content in this release

  • gh-108310: Fixed an issue where instances of ssl.SSLSocket were vulnerable to a bypass of the TLS handshake and included protections (like certificate verification) and treating sent unencrypted data as if it were post-handshake TLS encrypted data. Security issue reported as CVE-2023-40217 by Aapo Oksman. Patch by Gregory P. Smith.

Major new features of the 3.11 series, compared to 3.10

Some of the new major new features and changes in Python 3.11 are:

General changes

  • PEP 657 -- Include Fine-Grained Error Locations in Tracebacks
  • PEP 654 -- Exception Groups and except*
  • PEP 680 -- tomllib: Support for Parsing TOML in the Standard Library
  • gh-90908 -- Introduce task groups to asyncio
  • gh-34627 -- Atomic grouping ((?>...)) and possessive quantifiers (*+, ++, ?+, {m,n}+) are now supported in regular expressions.
  • The Faster CPython Project is already yielding some exciting results. Python 3.11 is up to 10-60% faster than Python 3.10. On average, we measured a 1.22x speedup on the standard benchmark suite. See Faster CPython for details.

Typing and typing language changes

  • PEP 673 -- Self Type
  • PEP 646 -- Variadic Generics
  • PEP 675 -- Arbitrary Literal String Type
  • PEP 655 -- Marking individual TypedDict items as required or potentially-missing
  • PEP 681 -- Data Class Transforms

More resources

And now for something completely different

In physics, Larmor precession (named after Joseph Larmor) is the precession of the magnetic moment of an object about an external magnetic field. The phenomenon is conceptually similar to the precession of a tilted classical gyroscope in an external torque-exerting gravitational field. Objects with a magnetic moment also have angular momentum and effective internal electric current proportional to their angular momentum; these include electrons, protons, other fermions, many atomic and nuclear systems, as well as classical macroscopic systems.

Full Changelog

Files

Version Operating system Description File size Sigstore GPG MD5 checksum
Gzipped source tarball Source release 25.3 MB .sigstore SIG b628f21aae5e2c3006a12380905bb640
XZ compressed source tarball Source release 19.1 MB .sigstore SIG 393856f1b7713aa8bba4b642ab9985d3
macOS 64-bit universal2 installer macOS for macOS 10.9 and later 42.2 MB .sigstore SIG 7a24f8b4eeca34899b7d75caaec3bc73
Windows installer (64-bit) Windows Recommended 24.7 MB .sigstore SIG 3afd5b0ba1549f5b9a90c1e3aa8f041e
Windows installer (32-bit) Windows 23.5 MB .sigstore SIG ac8e48a759a6222ce9332691568fe67a
Windows installer (ARM64) Windows Experimental 24.0 MB .sigstore SIG cd2bfd6bb39a6c84dbf9d1615b9f53b5
Windows embeddable package (64-bit) Windows 10.7 MB .sigstore SIG c5e83dc45630df2236720a18170bf941
Windows embeddable package (32-bit) Windows 9.6 MB .sigstore SIG add17856887d34c04a9cfd6c051c4bea
Windows embeddable package (ARM64) Windows 9.9 MB .sigstore SIG 8fc7d74daf27882f2a32a1b10c3a3a2c