Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3b765525
Commit
3b765525
authored
Sep 10, 2015
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whatsnew/3.5: Fix refs in the importlib section
parent
1c73e69e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
Doc/whatsnew/3.5.rst
Doc/whatsnew/3.5.rst
+12
-11
No files found.
Doc/whatsnew/3.5.rst
View file @
3b765525
...
...
@@ -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`.)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment