PEP 690 – Lazy Imports

Date: 5/14/2022 · Tags: #python

IMHO, I like lazy imports as a fancy and powerful opt-in feature, but it's quite doubtful to set this feature enabled by default in current proposal (PEP 690).

Implicit behaviors are terrible and will obviously break backward compatibility.

Do we forget the Zen of Python: "Explicit is better than implicit"?

PEP 690 – Lazy Imports

Discussions | PEP 690 Lazy Imports

Update 2022-07-05:

An article about how Meta use lazy imports to speed up Instagram Python server's slowdown caused by complex dependency hell.

Python Lazy Imports With Cinder