Message183551
From http://docs.python.org/3/using/cmdline.html:
Package names 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 script argument.
This is for "-m"
Also:
<script>
Execute the Python code contained in script, which must be a filesystem path (absolute or relative) referring to either a Python file, a directory containing a __main__.py file, or a zipfile containing a __main__.py file. |
|
Date |
User |
Action |
Args |
2013-03-05 19:48:45 | eli.bendersky | set | recipients:
+ eli.bendersky, lemburg, docs@python |
2013-03-05 19:48:45 | eli.bendersky | set | messageid: <1362512925.34.0.75235502308.issue17359@psf.upfronthosting.co.za> |
2013-03-05 19:48:45 | eli.bendersky | link | issue17359 messages |
2013-03-05 19:48:45 | eli.bendersky | create | |
|