Python 3.15 has been released as the new annual version of the programming language, and the most anticipated change for performance teams is the experimental JIT compiler, which has become faster. According to the development team's figures, on Linux x86-64 the JIT gains about 7-8% over the standard interpreter, while on macOS with AArch64 processors the advantage rises to 11-12% over the tail-calling interpreter.
The release also brings changes to everyday language behaviour. The new built-in frozendict type is an immutable dictionary: once created it cannot be modified, it can be used as a key when its contents are hashable, and it preserves insertion order. It is not a subclass of dict but inherits directly from object, and several standard library modules, including json, pickle and copy, already accept it.
Two more changes concern script startup. PEP 810 adds explicit lazy imports, which defer loading modules until they are needed, shortening launch times. The built-in sentinel type, introduced by PEP 661, offers a special value to signal the absence of data. Python 3.15 also uses UTF-8 as the default encoding (PEP 686), removing a historical source of errors tied to system locale settings, and adds package startup configuration files (PEP 829).
On debugging, the release improves error messages and enables frame pointers by default, making program execution traces easier to read.
The release date slipped by a week: a third release candidate, published on October 2, was needed to fix bugs in the lazy imports that surfaced at the last moment. In the same period Phoronix reported the release of SQLite 3.54, which drops Windows XP support but promises execution about 4% faster in its producer's benchmarks.
For developers, the practical advice is to download version 3.15 and test how the JIT, still opt-in, behaves on their applications before enabling it in production.

No comments yet. Be the first!