[Python-3000] Interest in PEP for callbacks on module import

Brett Cannon brett at python.org
Sat Dec 8 20:32:22 CET 2007


On Dec 8, 2007 7:32 AM, Christian Heimes <lists at cheimes.de> wrote:
> Phillip J. Eby wrote:
> > Misc. notes for the PEP: there should be a way to determine the laziness
> > of a module object without causing it to load.  I also think you should
> > be able to set a module's __loader__, __path__, and __file__, without
> > causing it to load.  That way, you can create a lazy module that is
> > loaded by a custom loader.  (Does reload() honor __loader__, or does it
> > start the import process over?)
>
> reload() is gone. Python 3.0 doesn't have a reload() function anymore.
>
> I don't know if Guido is planing to replace it with xreload().

There have been discussions of putting some form of reload function
into the imp module.

-Brett


More information about the Python-3000 mailing list