[Python-ideas] Implicit submodule imports
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Sep 26 00:31:23 CEST 2014
Nathaniel Smith wrote:
> They are really really hard
> to do cleanly, and you risk all kinds of breakage in edge-cases (e.g.
> try reload()'ing a module that's been replaced by an object).
One small thing that might help is to allow the
__class__ of a module to be reassigned to a
subclass of the module type. That would allow
a module to be given custom behaviours, while
remaining a real module object so that reload()
etc. continue to work.
--
Greg
More information about the Python-ideas
mailing list