diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-02-02 17:19:57 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-02-02 17:19:57 (GMT) |
commit | 5147e00c81e1c219fbcdeb1ea67b8dde4ab34ee8 (patch) | |
tree | 5ef30bd5470c2968d457b39d46575b02f4579de7 /Doc/using | |
parent | 1d2418355016d0c4ce2e3a3c58516062ea14785d (diff) | |
download | cpython-5147e00c81e1c219fbcdeb1ea67b8dde4ab34ee8.zip cpython-5147e00c81e1c219fbcdeb1ea67b8dde4ab34ee8.tar.gz cpython-5147e00c81e1c219fbcdeb1ea67b8dde4ab34ee8.tar.bz2 |
whatsnew: -m <namespace package>, plus 'using' doc updates.
Diffstat (limited to 'Doc/using')
-rw-r--r-- | Doc/using/cmdline.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index d1822fb..4807a36 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -81,7 +81,8 @@ source. the implementation may not always enforce this (e.g. it may allow you to 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 the main module. This behaviour is deliberately similar to the handling of directories and zipfiles that are passed to the interpreter as the @@ -115,6 +116,9 @@ source. .. versionchanged:: 3.1 Supply the package name to run a ``__main__`` submodule. + .. versionchanged:: 3.4 + namespace packages are also supported + .. describe:: - |