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.12.5

Release Date: Aug. 6, 2024

This is the fifth maintenance release of Python 3.12

Python 3.12 is the newest major release of the Python programming language, and it contains many new features and optimizations. 3.12.5 is the latest maintenance release, containing more than 250 bugfixes, build improvements and documentation changes since 3.12.4.

This version of Python 3.12 also comes with pip 24.2 by default. However, due to an incompatibility with older macOS versions, macOS 10.9 through 10.12 will downgrade their version of pip to 24.1.2 during the installation process (in the Install Certificates step). See the installer ReadMe and the pip issue on the matter for more information. Versions of macOS older than 10.13 haven't been supported by Apple since 2019, and maintaining support for them is becoming increasingly difficult. While this release of 3.12 still supports them, it is likely that we will be forced to drop support for macOS 10.12 and older in a future 3.12 release. (Python 3.13 has already dropped support for them.)

Major new features of the 3.12 series, compared to 3.11

New features

Type annotations

Deprecations

  • The deprecated wstr and wstr_length members of the C implementation of unicode objects were removed, per PEP 623.
  • In the unittest module, a number of long deprecated methods and classes were removed. (They had been deprecated since Python 3.1 or 3.2).
  • The deprecated smtpd and distutils modules have been removed (see PEP 594 and PEP 632. The setuptools package continues to provide the distutils module.
  • A number of other old, broken and deprecated functions, classes and methods have been removed.
  • Invalid backslash escape sequences in strings now warn with SyntaxWarning instead of DeprecationWarning, making them more visible. (They will become syntax errors in the future.)
  • The internal representation of integers has changed in preparation for performance enhancements. (This should not affect most users as it is an internal detail, but it may cause problems for Cython-generated code.)

For more details on the changes to Python 3.12, see What's new in Python 3.12.

More resources

Full Changelog

Files

Version Operating System Description MD5 Sum File Size GPG Sigstore SBOM
Gzipped source tarball Source release d23d56b51d36a9d51b2b13d30c849d00 25.7 MB SIG .sigstore SPDX
XZ compressed source tarball Source release 02c7d269e077f4034963bba6befdc715 19.5 MB SIG .sigstore SPDX
macOS 64-bit universal2 installer macOS for macOS 10.9 and later 78bd8d0795062b1df63e2b8d8386a5fa 43.5 MB SIG .sigstore
Windows installer (64-bit) Windows Recommended bbcb2fcf9d739f776fb6414afc12c80d 25.3 MB SIG .sigstore SPDX
Windows installer (32-bit) Windows d151f5f116e11c4d40021527f51ddf67 24.0 MB SIG .sigstore SPDX
Windows installer (ARM64) Windows Experimental 365d59eff83dfea9af528df4ebd060cb 24.5 MB SIG .sigstore SPDX
Windows embeddable package (64-bit) Windows 0f53697bdcecfb97b99ac8aa9d9a9e13 10.5 MB SIG .sigstore SPDX
Windows embeddable package (32-bit) Windows 82dd15b14c307f5fcef80ccb45d6b404 9.4 MB SIG .sigstore SPDX
Windows embeddable package (ARM64) Windows 62c81364c232644f280b06ef5f33a029 9.8 MB SIG .sigstore SPDX