New submission from Johannes Buchner <buchner.johan...@gmx.at>:
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? ---------- assignee: docs@python components: Documentation messages: 370887 nosy: docs@python, j13r priority: normal severity: normal status: open title: Ddcument exceptions raised by importlib.import versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40899> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com