25 Sep
2014
25 Sep
'14
10:31 p.m.
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