[issue40899] Document exceptions raised by importlib.import
Ronald Oussoren
report at bugs.python.org
Tue Aug 10 11:09:12 EDT 2021
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
Good question. Hopefully one of the documentation or importlib experts can chime in about that. I may also have uncovered a new issue in importlib ;-)
Personally I'd say that documenting raising ImportError is still useful because that's the common exception, and an exception that's not mentioned in the rest of the documentation for importlib. That does require a careful formulation to avoid implying that this the only exception that can be raised.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40899>
_______________________________________
More information about the Python-bugs-list
mailing list