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

Christian Heimes lists at cheimes.de
Sat Dec 8 16:32:06 CET 2007


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().

Christian


More information about the Python-3000 mailing list