Skip to main content
LeoNex News

Python 3.15 officially released: what's new for developers

Illustration: Python 3.15 officially released: what's new for developers
In this article

Python 3.15.0 now has a stable release. It is the latest major release of the Python language, bringing many features and optimizations over Python 3.14, with 5,643 commits from 1,012 contributors. This article summarizes the main changes, a warning for macOS users and a game that ships with the release.

New interpreter and JIT features

The Interpreter improvements group in Python 3.15 includes the following PEPs:

  • PEP 661: adds a built-in type called sentinel.

  • PEP 686: Python uses UTF-8 as the default encoding.

  • PEP 798: allows unpacking directly inside comprehensions.

  • PEP 810: explicit lazy imports, aimed at shortening startup time.

  • PEP 814: adds the built-in type frozendict.

  • PEP 829: configuration files used at package startup.

On performance, the experimental JIT compiler has been significantly upgraded. On x86-64 Linux, the improvement reaches 7-8% by geometric mean compared with the standard interpreter. On AArch64 macOS, the speedup is 11-12% compared with the tail-calling interpreter.

Standard library, typing and C API

The change list also mentions improved error messages and a More color section. The source text only names these two items and does not go into detail.

Standard library

  • PEP 799: a dedicated profiling package, used to organize Python's profiling tools.

  • Tachyon, also part of PEP 799: a high-frequency statistical sampling profiler.

New typing features

  • PEP 728: TypedDict with extra items of a defined type.

  • PEP 747: annotating type forms with TypeForm.

  • PEP 800: disjoint bases in the type system.

C API improvements

  • PEP 782: a new C API called PyBytesWriter for creating Python bytes objects.

  • PEP 788: protection against finalization in the C API.

  • PEP 803, 820, 793: Stable ABI for free-threaded builds, along with the related C API.

Build, releases and notes for macOS 27.0

Build and release changes

  • PEP 831: frame pointers are enabled by default, enabling better low-level system observability.

  • The official 64-bit Windows binaries use the tail-calling interpreter.

  • The official macOS binaries ship with free-threading support installed by default.

For the full list of changes, the source points to the What's new in Python 3.15 document.

IDLE and tkinter on macOS 27.0

The source issues a warning for users of IDLE or GUI applications that use the tkinter module. When invoking menu commands that open dialogs, such as About IDLE, Settings or Open Module in IDLE, the application may hang. Users see the spinning beach ball and must use Force Quit.

The cause is an operating system behavior change in macOS 27.0. This change is reportedly affecting every current version of Tk, so tkinter in every current Python version is affected as well.

If you depend on Tk-based applications such as IDLE on macOS, the source suggests two courses of action: postpone installing macOS 27.0 until a workaround is available from Tk or macOS, or check whether your application's workflow is affected. Updates are posted at issue 158053.

Resources and the whatsnewt game

  • Online documentation is available for the new release.

  • PEP 790 is the release schedule for Python 3.15.

  • Bugs you find can be reported on the project's issue tracker.

  • Users can sponsor Python directly or through GitHub Sponsors to support the community.

To mark the release, Barry Warsaw created whatsnewt, a TUI game (a text adventure in the terminal) that takes players through the What's New in Python 3.15 section. Players start in the Startup Foyer, located somewhere inside the interpreter, and gradually make their way to the Release Gate. Along the way there are eighteen puzzles, each one a real 3.15 feature that the player must use themselves: writing and running code in a Python 3.15 interpreter rather than just answering questions.

Some puzzles require a type checker. For those puzzles, answers are checked by pyrefly; pyrefly is a dependency of the main project for this reason, and the displayed results quote the tool's feedback. The easiest way to play is to run the following command:

bash
uvx --python 3.15 whatsnewt

The closing section of the announcement thanks the volunteers and calls for support for the Python Software Foundation. Georgi Ker and Marie Nordin are thanked for the Python 3.15 logo. The Sovereign Tech Agency is thanked for supporting release manager work for Python 3.14 and 3.15 through the Sovereign Tech Fellowship. The announcement is signed by the release team of Hugo van Kemenade, Ned Deily and Steve Dower.

Key points

  • Python 3.15.0 is the new stable release, comprising 5,643 commits from 1,012 contributors compared with Python 3.14.

  • On the language side: UTF-8 is the default encoding under PEP 686, along with explicit lazy imports, the sentinel type and the frozendict type.

  • The experimental JIT is 7-8% faster on x86-64 Linux and 11-12% faster on AArch64 macOS, according to the benchmarks cited in the source.

  • On build and release: frame pointers are enabled by default, the 64-bit Windows build uses the tail-calling interpreter, and the macOS build ships with free-threading support installed.

  • Users of IDLE or tkinter on macOS 27.0 may experience hangs when opening dialogs; the source advises following issue 158053.

More in Software Engineering

Illustration: Rust in CPython? Discussion at the Python Language Summit
SOFT-ENG Software Engineering

Rust in CPython? Discussion at the Python Language Summit

David Hewitt, representing the Rust for CPython project team, returned to the Python Language Summit to ask Python's core developers what they want from Rust. He presented a phased roadmap, success criteria and a proposal to start with an optional Rust backend for the zlib module. The long-term goal is to make Rust…

6 min read

Illustration: Notable V8 changes from Node.js 26 to 27
SOFT-ENG Software Engineering

Notable V8 changes from Node.js 26 to 27

The Node.js 27 Alpha upgrades V8 to version 15.6, up from 14.6 in Node.js 26. The upgrade brings several new JavaScript language features, a number of behavior changes, performance improvements and memory adjustments. Some changes may break code that relies on the old behavior, so developers should…

3 min read

Email newsletter

Receive a selection of new LeoNex News articles by email.

We only use this address to send the newsletter.

Receive a selection of new LeoNex News articles by email. You will receive a confirmation email; the subscription only takes effect after you confirm. Every email includes an unsubscribe link. Read the privacy policy