[issue15767] add ModuleNotFoundError

Christoph Groth report at bugs.python.org
Mon Feb 26 18:39:03 EST 2018


Christoph Groth <christoph at grothesque.org> added the comment:

In the above, please replace "understand the decision" by "understand the usefulness of it".

In the above discussion, as an alternative to a new exception, it was proposed to add an attribute to ImportError ('reason'), but then people seemed to agree that this is quite useless outside of importlib (msg192261).  But then I don't understand why the original idea of the exception was revived.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue15767>
_______________________________________


More information about the Python-bugs-list mailing list