[issue15767] add ModuleNotFoundError
Guido van Rossum
report at bugs.python.org
Tue Jul 2 06:54:10 CEST 2013
Guido van Rossum added the comment:
[switching to gmail-powered account]
I'm sorry, but this seems like it should be an importlib internal affair. The new exception is too much in everyone's face, because the exception name gets printed on every traceback.
I like #4, #3 is also acceptable. But #4 seems best because it can obviate a bunch of exception message parsing in user code, I'm sure. Though we shouldn't go overboard with distinguishing cases, the two different places where you currently raise MNFE should be distinguished IMO.
----------
nosy: +Guido.van.Rossum
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15767>
_______________________________________
More information about the Python-bugs-list
mailing list