chiprook
← Software
SoftwareOctober 20, 2026, 11:05

Python 3.15 adds explicit lazy imports with the lazy keyword

Python 3.15.0, released on 9 October 2026, introduces lazy imports under PEP 810: lazy import loads a module only when its name is first used. In a test, a script with a slow module started in 0.00s instead of 0.50s, with the module loading later on demand.

Python 3.15 adds explicit lazy imports with the lazy keyword
#Python
Read next
Software

Python 3.15 released with JIT, lazy imports, and frozendict

Software

Python 3.15: test shows lazy import defers the delay, not removes it

Software

Python 3.15 lazy imports cut cold start from 512 ms to 32 ms

Software

Python 3.15 speeds up Base32 135x but slows Base16 by 22%