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 <1628600323.8.0.95567449739.issue40899@roundup.psfhosted.org>
In-reply-to
Content
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:

# t.py
1/0
# EOF

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