On 13.01.2016 17:21, Alan Evangelista wrote: > 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?
Many modules provide command line interface or simply run tests when invoked as a script. Some examples: python -m pydoc python -m profile python -m platform python -m dis python -m gzip python -m base64 (the last three read from stdin :-)) -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Experts (#1, Jan 13 2016) >>> Python Projects, Coaching and Consulting ... http://www.egenix.com/ >>> Python Database Interfaces ... http://products.egenix.com/ >>> Plone/Zope Database Interfaces ... http://zope.egenix.com/ ________________________________________________________________________ ::: We implement business ideas - efficiently in both time and costs ::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ http://www.malemburg.com/ _______________________________________________ pydotorg-www mailing list pydotorg-www@python.org https://mail.python.org/mailman/listinfo/pydotorg-www