diff options
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r-- | Doc/library/importlib.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 1df6130..45a02e5 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -1215,6 +1215,11 @@ an :term:`importer`. .. versionadded:: 3.4 + .. versionchanged:: 3.7 + Raises :exc:`ModuleNotFoundError` instead of :exc:`AttributeError` if + **package** is in fact not a package (i.e. lacks a :attr:`__path__` + attribute). + .. function:: module_from_spec(spec) Create a new module based on **spec** and |