This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author j13r
Recipients docs@python, j13r
Date 2020-06-07.11:08:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591528094.81.0.814829435189.issue40899@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3/library/functions.html#__import__
and 
https://docs.python.org/3/library/importlib.html#importlib.import_module
do not list which Exceptions are raised in case the module cannot be imported.

The two exceptions are listed here
https://docs.python.org/3/library/exceptions.html#ImportError
ModuleNotFoundError

Could you add a half-sentence "and raises an ModuleNotFoundError if import was unsuccessful." to the function docs?
History
Date User Action Args
2020-06-07 11:08:14j13rsetrecipients: + j13r, docs@python
2020-06-07 11:08:14j13rsetmessageid: <1591528094.81.0.814829435189.issue40899@roundup.psfhosted.org>
2020-06-07 11:08:14j13rlinkissue40899 messages
2020-06-07 11:08:14j13rcreate