Python 3.13.0rc1
Release Date: Aug. 1, 2024
This is the first release candidate of Python 3.13.0
This release, 3.13.0rc1, is the penultimate release preview. Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. The second candidate (and the last planned release preview) is scheduled for Tuesday, 2024-09-03, while the official release of 3.13.0 is scheduled for Tuesday, 2024-10-01.
There will be no ABI changes from this point forward in the 3.13 series, and the goal is that there will be as few code changes as possible.
Call to action
We strongly encourage maintainers of third-party Python projects to prepare their projects for 3.13 compatibilities during this phase, and where necessary publish Python 3.13 wheels on PyPI to be ready for the final release of 3.13.0. Any binary wheels built against Python 3.13.0rc1 will work with future versions of Python 3.13. As always, report any issues to the Python bug tracker.
Please keep in mind that this is a preview release and while it's as close to the final release as we can get it, its use is not recommended for production environments.
Core developers: time to work on documentation now
- Are all your changes properly documented?
- Are they mentioned in What's New?
- Did you notice other changes you know of to have insufficient documentation?
Major new features of the 3.13 series, compared to 3.12
Some of the new major new features and changes in Python 3.13 are:
New features
- A new and improved interactive interpreter, based on PyPy's, featuring multi-line editing and color support, as well as colorized exception tracebacks.
- An experimental free-threaded build mode, which disables the Global Interpreter Lock, allowing threads to run more concurrently. The build mode is available as an experimental feature in the Windows and macOS installers as well.
- A preliminary, experimental JIT, providing the ground work for significant performance improvements.
- The
locals()
builtin function (and its C equivalent) now has well-defined semantics when mutating the returned mapping, which allows debuggers to operate more consistently. - The (cyclic) garbage collector is now incremental, which should mean shorter pauses for collection in programs with a lot of objects.
- A modified version of mimalloc is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.
- Docstrings now have their leading indentation stripped, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)
- The dbm module has a new dbm.sqlite3 backend that is used by default when creating new files.
- The minimum supported macOS version was changed from 10.9 to 10.13 (High Sierra). Older macOS versions will not be supported going forward.
- WASI is now a Tier 2 supported platform. Emscripten is no longer an officially supported platform (but Pyodide continues to support Emscripten).
- iOS is now a Tier 3 supported platform, with Android on the way as well.
Typing
- Support for type defaults in type parameters.
- A new type narrowing annotation,
typing.TypeIs
. - A new annotation for read-only items in TypeDicts.
- A new annotation for marking deprecations in the type system.
Removals and new deprecations
- PEP 594 (Removing dead batteries from the standard library) scheduled removals of many deprecated modules:
aifc
,audioop
,chunk
,cgi
,cgitb
,crypt
,imghdr
,mailcap
,msilib
,nis
,nntplib
,ossaudiodev
,pipes
,sndhdr
,spwd
,sunau
,telnetlib
,uu
,xdrlib
,lib2to3
. - Many other removals of deprecated classes, functions and methods in various standard library modules.
- C API removals and deprecations. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)
- New deprecations, most of which are scheduled for removal from Python 3.15 or 3.16.
(Hey, fellow core developer, if a feature you find important is missing from this list, let Thomas know.)
For more details on the changes to Python 3.13, see What's new in Python 3.13. The next pre-release of Python 3.13 will be 3.13.0rc2, the final release candidate, currently scheduled for 2024-09-03.
More resources
- Online Documentation
- PEP 719, 3.13 Release Schedule
- Report bugs at https://github.com/python/cpython/issues.
- Help fund Python directly (or via GitHub Sponsors), and support the Python community.
Files
Version | Operating System | Description | MD5 Sum | File Size | GPG | Sigstore | SBOM | |
---|---|---|---|---|---|---|---|---|
Gzipped source tarball | Source release | 179bbe323a2118e491ecd7992d7295e2 | 26.2 MB | SIG | .sigstore | SPDX | ||
XZ compressed source tarball | Source release | 9213ecfedc510ac2a14c0eeea96baf02 | 19.9 MB | SIG | .sigstore | SPDX | ||
macOS 64-bit universal2 installer | macOS | for macOS 10.13 and later | 6331a05caae16933691fff1b73e2b989 | 65.1 MB | SIG | .sigstore | ||
Windows installer (64-bit) | Windows | Recommended | 6e4bc83c1419c2fb2107699525fce143 | 25.4 MB | SIG | .sigstore | SPDX | |
Windows installer (32-bit) | Windows | b34a1ec90f60604afcd8be4d1fe63a8a | 24.1 MB | SIG | .sigstore | SPDX | ||
Windows installer (ARM64) | Windows | Experimental | f0b04c8bf03a13c8e3966e42a15f992a | 24.7 MB | SIG | .sigstore | SPDX | |
Windows embeddable package (64-bit) | Windows | 70ad0da3f448e973cd404d843ddc6cce | 11.9 MB | SIG | .sigstore | SPDX | ||
Windows embeddable package (32-bit) | Windows | 0d55f471d63c0e58e8ac890f31dabc8b | 10.4 MB | SIG | .sigstore | SPDX | ||
Windows embeddable package (ARM64) | Windows | 1435545c209ffe180fcb17839891b067 | 10.9 MB | SIG | .sigstore | SPDX |