We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe70d92 commit 6b4a5f4Copy full SHA for 6b4a5f4
Doc/reference/import.rst
@@ -464,8 +464,11 @@ import machinery will create the new module itself.
464
465
.. versionchanged:: 3.5
466
A :exc:`DeprecationWarning` is raised when ``exec_module()`` is defined but
467
- ``create_module()`` is not. Starting in Python 3.6 it will be an error to not
468
- define ``create_module()`` on a loader attached to a ModuleSpec.
+ ``create_module()`` is not.
+
469
+.. versionchanged:: 3.6
470
+ An :exc:`ImportError` is raised when ``exec_module()`` is defined but
471
+ ``create_module`` is not.
472
473
Submodules
474
----------
0 commit comments