diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-02-26 16:55:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-26 16:55:23 (GMT) |
commit | deea29e61e61f0e216bff3f0ca008f5ee231793f (patch) | |
tree | d3ee155e0469dfa872207130d92cef0f1242c153 /Doc/reference | |
parent | 76995cab69d5ef83d31d8a5754cbad11be4038cb (diff) | |
download | cpython-deea29e61e61f0e216bff3f0ca008f5ee231793f.zip cpython-deea29e61e61f0e216bff3f0ca008f5ee231793f.tar.gz cpython-deea29e61e61f0e216bff3f0ca008f5ee231793f.tar.bz2 |
bpo-26184: import.rst: Improve versionchanged note (GH-277) (#320)
(cherry picked from commit 6b4a5f45e2df524174a97832571c82c76a3d424a)
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/import.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index b603d1f..484457a 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 ---------- |