[Python-ideas] Idea: Lazy import statement

Oleg Broytmann phd at phd.pp.ru
Tue Oct 14 16:08:56 CEST 2008


On Wed, Oct 15, 2008 at 12:40:36AM +1100, Andrew Bennetts wrote:
> 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>

   See also mx.Misc.LazyModule:
http://www.koders.com/python/fid9565A91C21012C73AF249134CA058DEE0031AACB.aspx?s=cdef%3Aparser

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.



More information about the Python-ideas mailing list