Brett Cannon added the comment:

imp.find_module() might also best be updated to point out that 
importlib.import_module() exists for those cases where a replacement for 
sys.path is not necessary.

As for imp.load_module(), it might also be best to admit that import is simply 
not structured to work like imp.find_module()/imp.load_module() used to assume 
and to not try to force a replacement into importlib where it would be better 
for someone on PyPI to come up with a replacement; stdlib doesn't have to be 
everything to everyone, especially now that import is fully exposed in Python 
code (imp exists mainly because import used to be behind a veil of C code).

----------

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

Reply via email to