This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients docs@python, eli.bendersky, lemburg
Date 2013-03-05.19:48:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362512925.34.0.75235502308.issue17359@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-03-05 19:48:45eli.benderskysetrecipients: + eli.bendersky, lemburg, docs@python
2013-03-05 19:48:45eli.benderskysetmessageid: <1362512925.34.0.75235502308.issue17359@psf.upfronthosting.co.za>
2013-03-05 19:48:45eli.benderskylinkissue17359 messages
2013-03-05 19:48:45eli.benderskycreate