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.11.0b4

Note: Python 3.11.0b4 has been superseded by Python 3.11.14.

Release date: July 11, 2022

This is a beta preview of Python 3.11

Python 3.11 is still in development. 3.11.0b4 is the fourth of five planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.

We strongly encourage maintainers of third-party Python projects to test with 3.11 during the beta phase and report issues found to the Python bug tracker as soon as possible. While the release is planned to be feature complete entering the beta phase, it is possible that features may be modified or, in rare cases, deleted up until the start of the release candidate phase (Monday, 2021-08-02). Our goal is have no ABI changes after beta 4 and as few code changes as possible after 3.11.0rc1, the first release candidate. To achieve that, it will be extremely important to get as much exposure for 3.11 as possible during the beta phase.

Please keep in mind that this is a preview release and its use is not recommended for production environments.

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
  • PEP 681-- Data Class Transforms
  • bpo-46752-- Introduce task groups to asyncio
  • bpo-433030 -- 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

(Hey, fellow core developer, if a feature you find important is missing from this list, let Pablo know.)

The next pre-release of Python 3.11 will be 3.11.0b5, currently scheduled for Monday, 2022-07-25.

More resources

And now for something completely different

The Planck temperature is 1.416784×10**32 K. At this temperature, the wavelength of light emitted by thermal radiation reaches the Planck length. There are no known physical models able to describe temperatures greater than the Planck temperature and a quantum theory of gravity would be required to model the extreme energies attained. Hypothetically, a system in thermal equilibrium at the Planck temperature might contain Planck-scale black holes, constantly being formed from thermal radiation and decaying via Hawking evaporation; adding energy to such a system might decrease its temperature by creating larger black holes, whose Hawking temperature is lower.

Rumours say the Planck temperature can be reached in some of the hottest parts of Spain in summer.

Files

Version Operating system Description File size GPG MD5 checksum
Gzipped source tarball Source release 24.7 MB SIG f039c5c12c31153785d560fe0ce1782b
XZ compressed source tarball Source release 18.7 MB SIG aa663eaec1554e0979ed8b30afd6a7e9
macOS 64-bit universal2 installer macOS for macOS 10.9 and later 40.2 MB SIG 826b12e8227d31470b9e79f9de35ece2
Windows installer (64-bit) Windows Recommended 23.7 MB SIG 9449c26a0d187e5e01b61314aa78f156
Windows installer (32-bit) Windows 22.6 MB SIG a1fccc894f8cd4e2225a6cdb953c3dcf
Windows installer (ARM64) Windows Experimental 22.9 MB SIG 7df47df9b960a9273349faebe9e17f4c
Windows embeddable package (64-bit) Windows 10.0 MB SIG f44e8b2c92c0a857995225467ce451b8
Windows embeddable package (32-bit) Windows 9.1 MB SIG 3c9ddeb7ac92014ff9ec857e934db95e
Windows embeddable package (ARM64) Windows 9.3 MB SIG f57a413f6e6d234d39fc9dfe4263b9f1