Time to be lazy!

Python scripts can take a long time start. They need to load all their modules... In the upcoming Python release, you can make your scripts much faster with lazy module loading.

Oct 9, 2026 · 11:53 AM UTC

2
0
37
2,808
RepliesRelevant
Replying to @lemire
@lemire Or just don't use Python! No need to when LLMs are writing all the code. Useful for all the existing scripts, but we really should just move away from it now.
1
0
2
57
Replying to @Poita_
@Poita_ Interesting take.

Speaking for myself, I still use Python quite a bit.
0
0
1
56
Replying to @lemire
@lemire lazy imports buy startup time with a debugging tradeoff. i'd want to know which errors move from launch time to first use.
0
0
0
8