Python 3.15 lazy imports: Deferring module load until first use

Python 3.15 lazy imports: Deferring module load until first use

Every import in Python executes the module, from start to finish.

Meaning? Big modules slow down your program’s startup time.

Coming in Python 3.15 this October: “lazy import”, which delays the load until a name is used:

lazy import MODULE
lazy from MODULE import NAME