[New-bugs-announce] [issue37444] Differing exception between builtins and importlib when importing beyond top-level package
Brett Cannon
report at bugs.python.org
Fri Jun 28 15:22:13 EDT 2019
New submission from Brett Cannon <brett at python.org>:
builtins.__import__() raises ValueError (as it did in Python 2.7) while importlib.__import__() raises ImportError (which makes more sense to me).
Found by Ben Lewis.
----------
components: Interpreter Core, Library (Lib)
messages: 346855
nosy: Ben Lewis2, brett.cannon, eric.snow, ncoghlan
priority: normal
severity: normal
status: open
title: Differing exception between builtins and importlib when importing beyond top-level package
versions: Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37444>
_______________________________________
More information about the New-bugs-announce
mailing list