[Python-ideas] Idea: Lazy import statement

Thomas Heller theller at ctypes.org
Tue Oct 14 09:27:48 CEST 2008

Andrew Bennetts schrieb:
> 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.

How do these invented versions look like?


More information about the Python-ideas mailing list