Terry J. Reedy added the comment:

Adding something like '(not builtins.__import__)' or '(different from 
builtins.__import__') after 'importlib.__import__' should reduce the 
possibility of confusing the two and expecting something that will not happen.

You might check the doc for (builtins.)__import__ to make sure it does not 
promise anything that is no longer true.

What happens if people monkeypatch importlib.__import__?

----------

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

Reply via email to