Re: [pydotorg-www] Wiki page documenting running standard modules as scripts
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
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 Wichmannwrote: > 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
On 01/13/2016 02:15 PM, John Whitlock wrote: I've found that experienced Python developers are unaware that some standard modules can be run as scripts (...) I find these useful every few months, but they are also hard to discover. What is the usefulness of running a standard Python module as a script? ___ 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
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. Thanks, John On Wed, Jan 13, 2016 at 10:21 AM, Chris Angelicowrote: > On Thu, Jan 14, 2016 at 3:15 AM, John Whitlock > wrote: > > I think a page listing the standard modules that can run as scripts > would be > > useful, and wiki.python.org would be a good home for it, so that it > could be > > kept up-to-date by the community. I could start this page, if given > editor > > permissions for it (https://wiki.python.org/ExecutableModules ?). My new > > account is JohnWhitlock. > > Sounds like a worthwhile document! > > You should now have editing access. Thank you for the suggestion, and > the willingness to contribute! > > ChrisA > ___ pydotorg-www mailing list pydotorg-www@python.org https://mail.python.org/mailman/listinfo/pydotorg-www