Python 3.15 Release Notes (Planned)
Release Date: 1 October 2026 (Expected)
Last update: 15 april 2026
Python 3.15 is currently in active development (alpha stage). The release continues the long-term focus on performance, tooling, and gradual evolution of CPython internals.
What's New in Python 3.15 (Expected)
Continued Performance Improvements
Python 3.15 builds on the Faster CPython initiative with deeper low-level optimizations:
-
The experimental JIT compiler has been significantly expanded:
- Supports more bytecode instructions and control flow paths.
- Uses a new tracing frontend that records real execution paths instead of approximations.
- Introduces basic register allocation, reducing memory access overhead.
- Performs more aggressive constant propagation and optimization. :contentReference[oaicite:0]{index=0}
-
Improved machine code generation:
- Better output for x86-64 and AArch64 platforms.
- Lower memory usage and more efficient execution. :contentReference[oaicite:1]{index=1}
-
Early benchmarks show:
- ~3–5% average speedups on some platforms.
- Up to ~7–8% improvements on optimized architectures. :contentReference[oaicite:2]{index=2}
-
Ongoing work reduces reference counting overhead where safe, improving runtime efficiency. :contentReference[oaicite:3]{index=3}
Profiling and Developer Tooling
-
PEP 799 introduces a new built-in statistical sampling profiler:
- Designed to be low-overhead and suitable for production use.
- Provides a standardized profiling API and tooling in the standard library. :contentReference[oaicite:4]{index=4}
-
Improved debugging and diagnostics:
- Clearer and more helpful error messages.
- Better tracebacks for real-world debugging workflows. :contentReference[oaicite:5]{index=5}
Encoding and Runtime Behavior
- PEP 686: UTF-8 becomes the default encoding everywhere:
- Removes inconsistencies across platforms.
- Makes Python behavior more predictable and portable. :contentReference[oaicite:6]{index=6}
C API and Internals
-
PEP 782: New
PyBytesWriterAPI:- Simplifies efficient construction of
bytesobjects in C extensions. - Reduces overhead and improves memory handling. :contentReference[oaicite:7]{index=7}
- Simplifies efficient construction of
-
Continued internal refactoring of CPython:
- Cleaner interpreter structure.
- Ongoing preparation for future optimizations (including JIT and free-threading).
Memory and Execution Model
- Reduced reliance on reference counting in optimized paths.
- Better handling of temporary objects and execution frames.
- Improvements to interpreter architecture aimed at long-term scalability.
Language and Typing (Ongoing Work)
-
Continued evolution of Python’s typing system:
- Refinements to generics and static typing usability.
- Improvements to introspection behavior (e.g.
locals()consistency).
-
Additional PEPs may land during the alpha/beta phase.
Experimental and Future Directions
-
Continued development of:
- Free-threaded Python (no GIL mode) — still experimental but evolving.
- JIT compiler towards possible long-term default usage. :contentReference[oaicite:8]{index=8}
-
Potential features under discussion:
- Lazy imports (startup performance improvements).
- Further interpreter specialization and adaptive optimizations.
Standard Library
- New tools for profiling and performance analysis (PEP 799).
- Gradual cleanup of legacy modules as part of the "dead batteries" effort.
- Ongoing modernization of networking, security, and system interfaces.
Notes
- This release is still in development; features may change, be added, or removed.
- Performance improvements and internal changes are a major focus, even where no new syntax is introduced.
- Early testing is encouraged to help stabilize the ecosystem before final release.
Note: This information is based on pre-release PEPs and development goals. Features may change before the final release.