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
7e647cca
Commit
7e647cca
authored
May 09, 2014
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21438: Document what loaders don't require a module name for
load_module().
parent
8b742595
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Doc/library/importlib.rst
Doc/library/importlib.rst
+11
-1
No files found.
Doc/library/importlib.rst
View file @
7e647cca
...
@@ -887,6 +887,11 @@ find and load modules.
...
@@ -887,6 +887,11 @@ find and load modules.
Concrete
implementation
of
:
meth
:`
importlib
.
abc
.
SourceLoader
.
set_data
`.
Concrete
implementation
of
:
meth
:`
importlib
.
abc
.
SourceLoader
.
set_data
`.
..
method
::
load_module
(
name
=
None
)
Concrete
implementation
of
:
meth
:`
importlib
.
abc
.
Loader
.
load_module
`
where
specifying
the
name
of
the
module
to
load
is
optional
.
..
class
::
SourcelessFileLoader
(
fullname
,
path
)
..
class
::
SourcelessFileLoader
(
fullname
,
path
)
...
@@ -921,6 +926,11 @@ find and load modules.
...
@@ -921,6 +926,11 @@ find and load modules.
Returns
``
None
``
as
bytecode
files
have
no
source
when
this
loader
is
Returns
``
None
``
as
bytecode
files
have
no
source
when
this
loader
is
used
.
used
.
..
method
::
load_module
(
name
=
None
)
Concrete
implementation
of
:
meth
:`
importlib
.
abc
.
Loader
.
load_module
`
where
specifying
the
name
of
the
module
to
load
is
optional
.
..
class
::
ExtensionFileLoader
(
fullname
,
path
)
..
class
::
ExtensionFileLoader
(
fullname
,
path
)
...
@@ -940,7 +950,7 @@ find and load modules.
...
@@ -940,7 +950,7 @@ find and load modules.
Path to the extension module.
Path to the extension module.
.. method:: load_module(
fullnam
e)
.. method:: load_module(
name=Non
e)
Loads the extension module if and only if *fullname* is the same as
Loads the extension module if and only if *fullname* is the same as
:attr:`name` or is ``None``.
:attr:`name` or is ``None``.
...
...
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