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
919d5205
Commit
919d5205
authored
Feb 02, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whatsnew: -m <namespace package>, plus 'using' doc updates.
parent
da5e8f9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Doc/using/cmdline.rst
Doc/using/cmdline.rst
+5
-1
Doc/whatsnew/3.4.rst
Doc/whatsnew/3.4.rst
+7
-0
No files found.
Doc/using/cmdline.rst
View file @
919d5205
...
@@ -81,7 +81,8 @@ source.
...
@@ -81,7 +81,8 @@ source.
the
implementation
may
not
always
enforce
this
(
e
.
g
.
it
may
allow
you
to
the
implementation
may
not
always
enforce
this
(
e
.
g
.
it
may
allow
you
to
use
a
name
that
includes
a
hyphen
).
use
a
name
that
includes
a
hyphen
).
Package names are also permitted. When a package name is supplied instead
Package
names
(
including
namespace
packages
)
are
also
permitted
.
When
a
package
name
is
supplied
instead
of
a
normal
module
,
the
interpreter
will
execute
``<
pkg
>.
__main__
``
as
of
a
normal
module
,
the
interpreter
will
execute
``<
pkg
>.
__main__
``
as
the
main
module
.
This
behaviour
is
deliberately
similar
to
the
handling
the
main
module
.
This
behaviour
is
deliberately
similar
to
the
handling
of
directories
and
zipfiles
that
are
passed
to
the
interpreter
as
the
of
directories
and
zipfiles
that
are
passed
to
the
interpreter
as
the
...
@@ -115,6 +116,9 @@ source.
...
@@ -115,6 +116,9 @@ source.
..
versionchanged
::
3.1
..
versionchanged
::
3.1
Supply
the
package
name
to
run
a
``
__main__
``
submodule
.
Supply
the
package
name
to
run
a
``
__main__
``
submodule
.
..
versionchanged
::
3.4
namespace
packages
are
also
supported
..
describe
::
-
..
describe
::
-
...
...
Doc/whatsnew/3.4.rst
View file @
919d5205
...
@@ -789,6 +789,11 @@ and :func:`~importlib.util.source_from_cache` replace the same-named functions
...
@@ -789,6 +789,11 @@ and :func:`~importlib.util.source_from_cache` replace the same-named functions
in the deprecated :mod:`imp` module. (Contributed by Brett Cannon in
in the deprecated :mod:`imp` module. (Contributed by Brett Cannon in
:issue:`18194`.)
:issue:`18194`.)
The :mod:`importlib` bootstrap :class:`.NamespaceLoader` now conforms to
the :class:`.InspectLoader` ABC, which means that ``runpy`` and
``python -m`` can now be used with namespace packages. (Contributed
by Brett Cannon in :issue:`18058`.)
inspect
inspect
-------
-------
...
@@ -1380,6 +1385,8 @@ Other Improvements
...
@@ -1380,6 +1385,8 @@ Other Improvements
:func:`sys.getallocatedblocks()`. (Contributed by Antoine Pitrou in
:func:`sys.getallocatedblocks()`. (Contributed by Antoine Pitrou in
:issue:`13390`).
:issue:`13390`).
* ``python -m`` now works with namespace packages.
Significant Optimizations
Significant Optimizations
...
...
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