← Tuesday, October 13, 2026Languages & toolsDeep dive
Python 3.15 lazy imports can avoid plugin-related startup costs
Python 3.15’s explicit lazy imports defer loading modules until their symbols are used; the author says heavy plugin dependencies had added multiple seconds to CLI startup. This feature could reduce startup overhead in extensible Python tools.
- What
- Python 3.15 adds explicit lazy imports, which defer importing a module until its symbols are first used.
- How
- The feature can avoid loading heavy plugin dependencies at startup; the release also adds a low-overhead sampling profiler to the standard library.
- Why it matters
- Lazy imports can reduce startup work in plugin-based tools, while sampling profiles help engineers inspect running processes with little overhead.
Discussion
Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.
Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.