[Python-ideas] Idea: Lazy import statement
Andrew Bennetts
andrew-pythonideas at puzzling.org
Tue Oct 14 08:04:12 CEST 2008
Greg Ewing wrote:
> Problem: You have a package containing a large number of
> classes, of which only a few are typically used by any
> given application.
[...]
>
> So I think it would be good to have a dedicated syntax
> for lazy imports, so the top-level foo package can say
> something like
Yes, this would be good to have. There's clearly a need; Bazaar and
Mercurial and probably others have invented versions of this. It would
be excellent to have a standard way to spell it.
-Andrew.
More information about the Python-ideas
mailing list