[Python-ideas] Idea: Lazy import statement

Alexandre Vassalotti alexandre at peadrop.com
Thu Oct 23 04:07:24 CEST 2008

On Mon, Oct 13, 2008 at 4:12 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> What's needed is a way of lazily importing them, so
> that the import won't actually happen unless the
> imported names are referenced.

I think Christian Heimes started some PEP about this. If I recall
correctly, supporting lazy imports was part of PEP 369 (Post Import
Hooks), but later removed from the PEP due to time constraints (I

-- Alexandre

More information about the Python-ideas mailing list