diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-09-10 19:02:24 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-09-10 19:02:24 -0400 |
commit | 3b76552538652dfa440511502b0c25a5a4770aaa (patch) | |
tree | 0b39ec326b154ad47f8ff682e7d772d647c2abfa | |
parent | 1c73e69ec5fb342414489f98e825c74c354327dc (diff) | |
download | cpython-git-3b76552538652dfa440511502b0c25a5a4770aaa.tar.gz |
whatsnew/3.5: Fix refs in the importlib section
-rw-r--r-- | Doc/whatsnew/3.5.rst | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index 40598011c4..e293ae2b63 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -877,19 +877,20 @@ and the `WebP <https://en.wikipedia.org/wiki/WebP>`_ format importlib --------- -The :class:`importlib.util.LazyLoader` class allows for lazy loading of modules -in applications where startup time is important. (Contributed by Brett Cannon -in :issue:`17621`.) - -The :func:`importlib.abc.InspectLoader.source_to_code` method is now a -static method. This makes it easier to initialize a module object with -code compiled from a string by running ``exec(code, module.__dict__)``. +The :class:`util.LazyLoader <importlib.util.LazyLoader>` class allows for +lazy loading of modules in applications where startup time is important. +(Contributed by Brett Cannon in :issue:`17621`.) + +The :func:`abc.InspectLoader.source_to_code <importlib.abc.InspectLoader.source_to_code>` +method is now a static method. This makes it easier to initialize a module +object with code compiled from a string by running +``exec(code, module.__dict__)``. (Contributed by Brett Cannon in :issue:`21156`.) -The new :func:`importlib.util.module_from_spec` function is now the preferred -way to create a new module. Compared to the :class:`types.ModuleType` class, -this new function will set the various import-controlled attributes based -on the passed-in spec object. +The new :func:`util.module_from_spec <importlib.util.module_from_spec>` +function is now the preferred way to create a new module. Compared to the +:class:`types.ModuleType` class, this new function will set the various +import-controlled attributes based on the passed-in spec object. (Contributed by Brett Cannon in :issue:`20383`.) |