UTF-8 as the default encoding, explicit lazy imports and a sampling profiler in the standard library: Python 3.15.0 has been final since October 9, 2026, and it brings several changes you'll notice in startup time, in observability and, if you're not careful, in how your code reads files.
What matters
Three changes stand out if you run Python services in production:
- Lazy imports (PEP 810). In CLIs, serverless functions and workers that start many times, import time often dominates cold starts. Being able to defer imports explicitly goes straight at that.
- Built-in observability. Frame pointers are enabled by default in the build (PEP 831), and Tachyon, a high-frequency sampling profiler, arrives in a dedicated profiling package (PEP 799). Profiling a Python process with system tools no longer requires recompiling anything.
- UTF-8 by default (PEP 686). This is the change most likely to surprise you: code that opens files without an
encodingand relied on the locale may behave differently.
The rest of the list: a sentinel type (PEP 661), unpacking in comprehensions (PEP 798), frozendict (PEP 814), startup configuration files for packages (PEP 829), better error messages, TypedDict with typed extra items (PEP 728), TypeForm (PEP 747), disjoint bases (PEP 800) and, in the C API, PyBytesWriter (PEP 782), finalization protection (PEP 788) and a stable ABI for free-threaded builds (PEP 803, 820 and 793).
The experimental JIT improves by 7–8% geometric mean over the standard interpreter on x86-64 Linux and 11–12% over the tail-calling interpreter on AArch64 macOS. Official macOS binaries now install free-threading support by default, and 64-bit Windows binaries use the tail-calling interpreter.
What can break
The announcement doesn't spell out the compatibility impact of UTF-8 by default or list deprecations and removals: those are in "What's New in Python 3.15", which is required reading before upgrading. There's also a specific warning: on macOS 27.0, IDLE and other tkinter apps can hang when opening dialogs because of an OS change, and the project recommends waiting for a workaround (issue #158053). It doesn't affect Linux servers, but it does affect development machines.
How to install it
The usual routes:
# With uv
uv python install 3.15
# With pyenv
pyenv install 3.15.0
# In containers, the official image
docker run --rm -it python:3.15-slim python --versionOn macOS and Windows there are also the python.org installers.
Migration checklist
- Read "What's New in Python 3.15" end to end, especially deprecations and removals.
- Add 3.15 to your CI matrix as a non-blocking job and run the suite with warnings as errors:
python3.15 -W error -m pytest -q. - Search for
open(withoutencoding=andread_text()without an explicit encoding, and setencoding="utf-8"wherever behavior must stay stable. - Measure startup before and after with
python3.15 -X importtime -c "import my_app"and decide which imports are worth making lazy. - Try the JIT and free-threading only in an isolated environment with your own benchmarks: the published gain is an average.
- Don't take it to production until your dependencies ship wheels for 3.15.
Sources
- Python 3.15.0 (final) is here! (Python Insider), October 9, 2026