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
98620d87
Commit
98620d87
authored
Dec 13, 2013
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19963: Document that importlib.import_module() will import
parent packages automatically.
parent
d913d9d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Doc/library/importlib.rst
Doc/library/importlib.rst
+5
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/importlib.rst
View file @
98620d87
...
...
@@ -82,10 +82,13 @@ Functions
derived
from
:
func
:`
importlib
.
__import__
`,
including
requiring
the
package
from
which
an
import
is
occurring
to
have
been
previously
imported
(
i
.
e
.,
*
package
*
must
already
be
imported
).
The
most
important
difference
is
that
:
func
:`
import_module
`
returns
the
most
nest
ed
package
or
module
that
was
imported
(
e
.
g
.
``
pkg
.
mod
``),
while
:
func
:`
__import__
`
returns
the
is
that
:
func
:`
import_module
`
returns
the
specifi
ed
package
or
module
(
e
.
g
.
``
pkg
.
mod
``),
while
:
func
:`
__import__
`
returns
the
top
-
level
package
or
module
(
e
.
g
.
``
pkg
``).
..
versionchanged
::
3.3
Parent
packages
are
automatically
imported
.
..
function
::
find_loader
(
name
,
path
=
None
)
Find
the
loader
for
a
module
,
optionally
within
the
specified
*
path
*.
If
the
...
...
Misc/NEWS
View file @
98620d87
...
...
@@ -169,6 +169,9 @@ Tests
Documentation
-------------
- Issue #19963: Document that importlib.import_module() no longer requires
importing parent packages separately.
- Issue #18840: Introduce the json module in the tutorial, and deemphasize
the pickle module.
...
...
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