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

2016-01-17 Thread Mats Wichmann
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.
___
pydotorg-www mailing list
pydotorg-www@python.org
https://mail.python.org/mailman/listinfo/pydotorg-www


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

2016-01-17 Thread John Whitlock
I agree, not as valuable, could be deleted. My thinking was, if someone
searches for Executable Modules, and clicks on this page, what would they
expect to see?

On Sun, Jan 17, 2016 at 12:33 PM, Mats Wichmann  wrote:

> 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.
>
___
pydotorg-www mailing list
pydotorg-www@python.org
https://mail.python.org/mailman/listinfo/pydotorg-www