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 ronaldoussoren
Recipients docs@python, iritkatriel, j13r, meowmeowmeowcat, ronaldoussoren
Date 2021-08-10.12:58:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Note that importlib.import_module, and the import statement itself, can raise an arbitrary exception when that exception is raised while executing the module body.

This is easily observed by creating a module that just raises an error in its body:


``importlib.import_module("t")`` will raise ZeroDivisionError.
Date User Action Args
2021-08-10 12:58:43ronaldoussorensetrecipients: + ronaldoussoren, docs@python, j13r, iritkatriel, meowmeowmeowcat
2021-08-10 12:58:43ronaldoussorensetmessageid: <>
2021-08-10 12:58:43ronaldoussorenlinkissue40899 messages
2021-08-10 12:58:43ronaldoussorencreate