Brett Cannon added the comment:

So the approaches I have been using make a loader lazy, so what you have to 
change in terms of sys.meta_path, sys.path_hooks, etc. would very from loader 
to loader.

I have realized one tricky thing with all of this is that importlib itself 
inspects modules post-import to verify that __loader__ and __package__ have 
been set. That typically triggers an immediate load and so might need to be 
special-cased.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17621>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to