Python 3.13.2
Release Date: Feb. 4, 2025
This is the second maintenance release of Python 3.13
Python 3.13 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. 3.13.2 is the latest maintenance release, containing almost 250 bugfixes, build improvements and documentation changes since 3.13.1.
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
- Anew and improved interactive interpreter, based onPyPy's, featuring multi-line editing and color support, as well as colorizedexception tracebacks.
- Anexperimental 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.
- Apreliminary,experimental JIT, providing the ground work for significant performance improvements.
- The
locals()
builtin function (and its C equivalent) now haswell-defined semantics when mutating the returned mapping, which allows debuggers to operate more consistently. - A modified version ofmimalloc is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.
- Docstrings now havetheir leading indentation stripped, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)
- Thedbm module has a newdbm.sqlite3 backend that is used by default when creating new files.
- The minimum supported macOS version was changed from 10.9 to10.13 (High Sierra). Older macOS versions will not be supported going forward.
- WASI is now aTier 2 supported platform. Emscripten is no longer anofficially supported platform (butPyodide continues to support Emscripten).
- iOS is now aTier 3 supported platform.
- Android is now aTier 3 supported platform.
Typing
- Support fortype defaults in type parameters.
- Anew type narrowing annotation,
typing.TypeIs
. - A new annotation forread-only items in TypeDicts.
- A new annotation formarking 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 APIremovals anddeprecations. (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.
For more details on the changes to Python 3.13, seeWhat's new in Python 3.13.
More resources
- Online Documentation
- PEP 719, 3.13 Release Schedule
- Report bugs athttps://github.com/python/cpython/issues.
- Help fund Python directly (orvia GitHub Sponsors), and supportthe Python community.
Files
Version | Operating System | Description | MD5 Sum | File Size | GPG | Sigstore | SBOM | |
---|---|---|---|---|---|---|---|---|
Gzipped source tarball | Source release | 6192ce4725d9c9fc0e8a1cd38410b417 | 28.0 MB | SIG | .sigstore | SPDX | ||
XZ compressed source tarball | Source release | 4c2d9202ab4db02c9d0999b14655dfe5 | 21.6 MB | SIG | .sigstore | SPDX | ||
macOS 64-bit universal2 installer | macOS | for macOS 10.13 and later | 9916903cff14723bdbc41e3ed5530eeb | 67.8 MB | SIG | .sigstore | ||
Windows installer (64-bit) | Windows | Recommended | 40d2c830eedee3dd78f4b707f04fd1d2 | 27.3 MB | SIG | .sigstore | SPDX | |
Windows installer (32-bit) | Windows | 91941eaa5086d500384cb55ad247be87 | 26.0 MB | SIG | .sigstore | SPDX | ||
Windows installer (ARM64) | Windows | Experimental | 252c8265c8768e14f7eeee3e1fcc39fc | 26.6 MB | SIG | .sigstore | SPDX | |
Windows embeddable package (64-bit) | Windows | 4c9d083e2d79c07e8d9e5e2d02127980 | 10.4 MB | SIG | .sigstore | SPDX | ||
Windows embeddable package (32-bit) | Windows | 60bbb372a73146c08702f5513ec2714d | 9.2 MB | SIG | .sigstore | SPDX | ||
Windows embeddable package (ARM64) | Windows | 6814e678a029bb545e6fb2472ddc1153 | 9.7 MB | SIG | .sigstore | SPDX |