October 7th, 2024

Python 3.13.0

Python 3.13.0 was released on October 7, 2024, featuring an improved interactive interpreter, experimental JIT, updated macOS support, removal of deprecated modules, and enhanced type annotations for better checking.

Read original articleLink Icon
Python 3.13.0

Python 3.13.0 was officially released on October 7, 2024, introducing several new features and optimizations over the previous version, 3.12. Key enhancements include an improved interactive interpreter with multi-line editing and color support, an experimental free-threaded build mode that allows for concurrent thread execution, and a preliminary Just-In-Time (JIT) compilation feature aimed at boosting performance. The locals() function now has clearer semantics for mutating returned mappings, and a modified version of the mimalloc memory allocator is included by default if supported. Additionally, docstrings have reduced memory usage due to stripped leading indentation, and the dbm module now defaults to using a new SQLite backend. The minimum supported macOS version has been raised to 10.13, while iOS and Android are now classified as Tier 3 supported platforms. Several deprecated modules and features have been removed, in line with PEP 594, and new type annotations have been introduced to enhance type checking. For further details, users can refer to the official documentation and changelog.

- Python 3.13.0 was released on October 7, 2024.

- New features include an improved interactive interpreter and an experimental JIT.

- The minimum supported macOS version is now 10.13.

- Several deprecated modules have been removed as part of PEP 594.

- New type annotations have been added to enhance type checking.

Link Icon 1 comments
By @alduin32 - 7 months
Type defaults are a nice addition, they were something I lacked a lot back when I was still writing Python code.

The new interpreter is nice, but I wish they had incorporated the display of variable values in the traceback (similarly to ipython's xmode attribute, or to traceback-with-variables), this is something I've always missed in Python.