| Feature | How to Enable | What It Does | |---------|---------------|--------------| | (default) | No action required – enabled in the interpreter build. | The try/except block incurs almost no overhead when no exception is raised. | | Per‑interpreter bytecode cache | Set PYTHONPYCACHEPREFIX=$HOME/.cache/pyc (or any directory). | Separate .pyc caches per interpreter, improving start‑up for applications that spin up many sub‑interpreters. | | Import hash verification | python -X importhash script.py or export PYTHONIMPORTHASH=1 . | Checks a SHA‑256 signature embedded in compiled bytecode against a trusted key store ( ~/.python_import_signatures ). |

If your distro’s repo still lags, you can use the official tarball ( Python‑3.13.1.tgz ) or the pyenv build:

Includes removals of several long-deprecated modules (known as "dead batteries") like cgi , smtpd , and telnetlib .

A completely rewritten REPL based on PyPy, featuring multi-line editing, color support, and colorized exception tracebacks.

All of these are tracked in the CPython issue tracker under the 3.13 milestone. Patches are scheduled for the next micro‑release (3.13.2).

Python Release 3.13.1 December — 2025 |verified|

| Feature | How to Enable | What It Does | |---------|---------------|--------------| | (default) | No action required – enabled in the interpreter build. | The try/except block incurs almost no overhead when no exception is raised. | | Per‑interpreter bytecode cache | Set PYTHONPYCACHEPREFIX=$HOME/.cache/pyc (or any directory). | Separate .pyc caches per interpreter, improving start‑up for applications that spin up many sub‑interpreters. | | Import hash verification | python -X importhash script.py or export PYTHONIMPORTHASH=1 . | Checks a SHA‑256 signature embedded in compiled bytecode against a trusted key store ( ~/.python_import_signatures ). |

If your distro’s repo still lags, you can use the official tarball ( Python‑3.13.1.tgz ) or the pyenv build: python release 3.13.1 december 2025

Includes removals of several long-deprecated modules (known as "dead batteries") like cgi , smtpd , and telnetlib . | Feature | How to Enable | What

A completely rewritten REPL based on PyPy, featuring multi-line editing, color support, and colorized exception tracebacks. | Separate

All of these are tracked in the CPython issue tracker under the 3.13 milestone. Patches are scheduled for the next micro‑release (3.13.2).