On Tue, Sep 12, 2017 at 10:32 PM Nathaniel Smith <njs@pobox.com> wrote:
If you're ok with replacing the object in sys.modules then the ability to totally customize your module's type has existed since the dawn era. 
I'm down with that. Just make it easier, mucking with sys.modules ain't a walk in a park, and there's the boilerplate and the crazy issues with interpreter shutdown.
-- Ionel
Cristian Mărieș, http://blog.ionelmc.ro