Python 313 Release Notes Verified (2026)

You can now navigate and edit multi-line blocks of code within the REPL without having to rewrite the entire block.

However, critical context must be noted: free-threading is . Official installers from python.org do not enable this feature. To obtain a no-GIL build, developers must compile CPython 3.13 from source with the --disable-gil configuration flag. Even when enabled, the Python Steering Council warns that this mode may cause unexpected problems, and production use is strongly discouraged at this stage. python 313 release notes verified

: Pasting large chunks of code with varied indentation used to break the interpreter. The new shell handles multi-line snippets automatically without throwing syntax or indentation errors. You can now navigate and edit multi-line blocks

movie: Movie = "title": "Inception", "year": 2010 movie["year"] = 2011 # OK movie["title"] = "Interstellar" # Type checker error (mypy/pyright with 3.13 support) To obtain a no-GIL build, developers must compile CPython 3

The dbm module now features a new dbm.sqlite3 backend, which is used by default when creating new DBM files. This provides better performance and reliability than the legacy implementations.

: Several long-deprecated legacy modules were officially removed, including New DBM Backend dbm.sqlite3