[pydotorg-www] Wiki page documenting running standard modules as scripts

Mats Wichmann mats at wichmann.us
Sun Jan 17 13:33:17 EST 2016

On 01/13/2016 10:47 AM, John Whitlock wrote:
> Initial version is now at https://wiki.python.org/moin/ExecutableModules .
> It is incomplete - feel free to add others, standardize the formatting and
> markup, etc.

Just observing,

I guess I don't see the value of the second section; the method for
making a standard python script is pretty well known, and anyway you're
interested in whether the author of the module has done so, not learning
how to do it yourself.  The interesting part is that *if* a standard
library module (or in fact an add-on module not included in the standard
library) has been written to be executable standalone, then using "-m
modname" goes and finds it in the path so you don't have to locate the
file yourself.

More information about the pydotorg-www mailing list