On Wed, Nov 15, 2017 at 8:44 AM, Nick Coghlan <[email protected]> wrote:

>
> I like the idea in principle, but highlighting a particular backwards
> compatibility pain point: one of the complications in importlib is that we
> promise to keep the "sys.modules[__name__] = some_other_object" idiom
> working. That means the need to do that check exists regardless of whether
> importlib is passing the module itself around, or the module's dict.
>
>
>
Another point, perhaps more difficult to address: Would for instance
globals() then return a module instead of a dict/mapping?​

​––Koos​



-- 
+ Koos Zevenhoven + http://twitter.com/k7hoven +
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to