From: Mariatta Date: Sun, 26 Feb 2017 15:36:57 +0000 (-0800) Subject: bpo-26184: import.rst: Improve versionchanged note (GH-277) X-Git-Tag: v3.7.0a1~1270 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b4a5f45e2df524174a97832571c82c76a3d424a;p=python bpo-26184: import.rst: Improve versionchanged note (GH-277) Mention that an ImportError is raised when exec_module() is defined, but create_module() is not. --- diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index b603d1f978..484457a8a5 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -464,8 +464,11 @@ import machinery will create the new module itself. .. versionchanged:: 3.5 A :exc:`DeprecationWarning` is raised when ``exec_module()`` is defined but - ``create_module()`` is not. Starting in Python 3.6 it will be an error to not - define ``create_module()`` on a loader attached to a ModuleSpec. + ``create_module()`` is not. + +.. versionchanged:: 3.6 + An :exc:`ImportError` is raised when ``exec_module()`` is defined but + ``create_module`` is not. Submodules ----------