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

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


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