<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On Sep 11, 2017 2:32 PM, "Neil Schemenauer" <<a href="mailto:nas-python-ideas@arctrix.com">nas-python-ideas@arctrix.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">On 2017-09-11, Neil Schemenauer wrote:<br>
> A module can be a singleton instance of a singleton ModuleType<br>
> instance.<br>
<br>
</div>Maybe more accurate to say each module would have its own unique<br>
__class__ associated with it.  So, you can add properties to the<br>
class without affecting other modules.  For backwards compatibility,<br>
we can create anonymous modules as needed if people are passing<br>
'dict' objects to the legacy API.</blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">FYI, you should be able to try this out using a custom loader the implements a create_module() method.  See importlib.abc.Finder.</div><div dir="auto"><br></div><div dir="auto">-eric</div><div dir="auto"></div></div>