Antoine Pitrou <pit...@free.fr> added the comment:

Ah, you're right. But it could become confusing if some error is raised inside 
of importlib itself (not an ImportError, something else - perhaps a bug).

So I would suggest the following:
- trim ImportErrors
- trim errors raised when executing the code of an imported module (i.e. in 
_LoaderBasics._load_module())
- don't trim other errors, since they can be importlib programming errors

----------

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

Reply via email to