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

Release Date: Oct. 1, 2024

This is the seventh 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.7 is the latest maintenance release, containing about 120 bug fixes, build improvements and documentation changes since 3.12.6.

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 5d0c0e4c6a022a87165a9addcd869109 25.8 MB SIG .sigstore SPDX
XZ compressed source tarball Source release c6c933c1a0db52597cb45a7910490f93 19.5 MB SIG .sigstore SPDX
macOS 64-bit universal2 installer macOS for macOS 10.13 and later 82711848a795f6d7b25e81844d5a9a3f 43.3 MB SIG .sigstore
Windows installer (64-bit) Windows Recommended b51e0889be50c55fbdd809f4ad587120 25.3 MB SIG .sigstore SPDX
Windows installer (32-bit) Windows 5d5452249401822cb3ad1bce7105d5fd 24.1 MB SIG .sigstore SPDX
Windows installer (ARM64) Windows Experimental 19bdd2de8a7ccb6f1115f85bc54c1764 24.6 MB SIG .sigstore SPDX
Windows embeddable package (64-bit) Windows 4c0a5a44d4ca1d0bc76fe08ea8b76adc 10.6 MB SIG .sigstore SPDX
Windows embeddable package (32-bit) Windows 21a051ecac4a9a25fab169793ecb6e56 9.4 MB SIG .sigstore SPDX
Windows embeddable package (ARM64) Windows 6fc899d8dbd46dd2b585a038f7cf68a4 9.8 MB SIG .sigstore SPDX