MobbleOpen in Mobble ⇢
Technology · Software & cloud · published 2026-10-09 · via InfoWorld

Python 3.15 arrives with lazy imports and new built-in types

Image via InfoWorld
Image via InfoWorld

Python 3.15 has been released with several major language and tooling updates. The release adds lazy imports, a frozendict immutable dictionary type, and a sentinel() helper for unique marker objects. It also introduces a statistical sampling profiler intended to reduce profiling overhead compared with cProfile.

Expanded Detail

Python 3.15's release adds several long-requested capabilities. Imports can now be deferred until a module is actually needed, and existing conventional imports can be made to work this way through configuration or an environment setting. A new immutable, hashable dictionary variant, frozendict, joins the built-in types, while sentinel("NAME") creates distinct marker objects with useful representations and type-checking support.

A new profiling.sampling module uses statistical sampling to lower overhead compared with deterministic cProfile, now also called profiling.tracing. CPython's JIT, introduced in 3.13, gains a new tracing front end, register allocation, improved generated machine code, and other optimizations, yielding reported geometric mean speedups of 8% to 13% depending on platform and workload.

Context

Python's changes may affect a broad range of developers, data scientists, educators, and cloud teams who rely on the language. Faster startup and JIT gains could lower compute costs and improve user-facing responsiveness, while sampling profiles may make performance work more accessible. Immutable dictionaries and sentinels could reduce certain classes of bugs. These benefits may arrive unevenly, since projects must adopt new versions and validate compatibility before production use.

Expanded detail and Context are AI-generated analysis; the linked article remains the authoritative source.
Read the full article at InfoWorld →
Related stories
Google Health 5.10 update arrives with three new features · Software & cloud
This summary is Al-enhanced to contain extended analysis and broader social context. The original is {NAME); the linked article is the authoritative source. Original headline: “The best new features in Python 3.15.” Browse more stories.