[Python-ideas] Idea: Lazy import statement

Andrew Bennetts andrew-pythonideas at puzzling.org
Tue Oct 14 15:40:36 CEST 2008


Thomas Heller wrote:
> Andrew Bennetts schrieb:
[...]
> > 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?

<http://bazaar.launchpad.net/~bzr/bzr/trunk/annotate/head:/bzrlib/lazy_import.py>

<http://selenic.com/repo/index.cgi/hg-stable/file/967adcf5910d/mercurial/demandimport.py#l1>

-Andrew.



More information about the Python-ideas mailing list