Python 313 Release Notes Verified |top|
To lay the groundwork for significant future performance improvements.
Python 3.13 addresses long-standing performance architecture paradigms by introducing experimental support for a free-threaded runtime and an entirely new Just-In-Time (JIT) compiler. Free-Threaded CPython (PEP 703)
One universally available improvement requires no special compilation: the interactive interpreter (REPL) has been completely rewritten based on PyPy's implementation. The new REPL supports multi-line editing with seamless block handling, colorized syntax highlighting, and persistent command history across sessions. Exception tracebacks are now colorized by default, with different colors distinguishing error types, file paths, and line numbers. python 313 release notes verified
PEP 744 embeds Python’s initial . Instead of relying solely on standard bytecode interpretation, this system relies on a copy-and-patch compilation model to parse specific execution instructions down into optimized native assembly language blocks. Performance acceleration is initially modest, but it establishes the primary runtime ecosystem that subsequent versions use to achieve drastic execution speeds. Core Language Changes & Error Messages
A dedicated paste mode (F3) makes it easier to paste large blocks of code without syntax errors. 3. Preliminary JIT Compiler (PEP 744) To lay the groundwork for significant future performance
: If you misspell a keyword argument in a function call, the interpreter now explicitly prints a suggestion for the correct argument name.
The Interactive Interpreter (REPL) has received its first major overhaul in years, inspired by the PyPy interpreter and IPython. The new REPL supports multi-line editing with seamless
iOS and Android are now Tier 3 supported platforms, while WASI is Tier 2. Current Status & Maintenance
For decades, Python has maintained its status as one of the world’s most beloved programming languages by adhering to a philosophy of simplicity and readability. However, beneath its accessible syntax lies a complex evolution aimed at improving performance and developer ergonomics. The release of Python 3.13 marks a significant milestone in this journey. While some iterations of the language focus on syntactic sugar or standard library additions, Python 3.13 is characterized by a deeper transformation: it is a release that prioritizes the guts of the interpreter, introducing a new interactive shell and laying the final groundwork for a landmark performance feature, the removal of the Global Interpreter Lock (GIL).
WebAssembly System Interface (WASI) now receives Tier 2 status, indicating the CPython team will ensure WASI builds pass the test suite and provides basic support for platform-specific issues.