Skip to content
Dhruv Patel

, 6 min read, python, performance, startup

Lazy imports in Python 3.15 move your ImportError somewhere else

PEP 810's lazy keyword took my toy CLI's --version from 39 ms to bare interpreter startup. The catch: a broken import now fails where the name is first used.

Filed under python, performance, startup.

Comments

Loading comments