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.
This commit is contained in:
parent
fe70d924bb
commit
6b4a5f45e2
|
@ -464,8 +464,11 @@ import machinery will create the new module itself.
|
||||||
|
|
||||||
.. versionchanged:: 3.5
|
.. versionchanged:: 3.5
|
||||||
A :exc:`DeprecationWarning` is raised when ``exec_module()`` is defined but
|
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
|
``create_module()`` is not.
|
||||||
define ``create_module()`` on a loader attached to a ModuleSpec.
|
|
||||||
|
.. versionchanged:: 3.6
|
||||||
|
An :exc:`ImportError` is raised when ``exec_module()`` is defined but
|
||||||
|
``create_module`` is not.
|
||||||
|
|
||||||
Submodules
|
Submodules
|
||||||
----------
|
----------
|
||||||
|
|
Loading…
Reference in New Issue