Re: The usage of -m option of python

2013-04-08 Thread Terry Jan Reedy
On 4/8/2013 10:50 AM, Albert van der Horst wrote: In article , Terry Reedy wrote: On 3/18/2013 5:17 PM, Peng Yu wrote: Hi, I don't quite understand how -m option is used. And it is difficult to search for -m in google. Could anybody provide me with an example on how to use this option? pyt

Re: The usage of -m option of python

2013-04-08 Thread Albert van der Horst
In article , Terry Reedy wrote: >On 3/18/2013 5:17 PM, Peng Yu wrote: >> Hi, >> >> I don't quite understand how -m option is used. And it is difficult to >> search for -m in google. Could anybody provide me with an example on >> how to use this option? > >python -m test >at a command line runs th

Re: The usage of -m option of python

2013-03-27 Thread Terry Reedy
On 3/18/2013 11:03 PM, Terry Reedy wrote: On 3/18/2013 5:17 PM, Peng Yu wrote: Hi, I don't quite understand how -m option is used. And it is difficult to search for -m in google. Could anybody provide me with an example on how to use this option? python -m test at a command line runs the regr

Re: The usage of -m option of python

2013-03-27 Thread Tom P
On 03/18/2013 10:17 PM, Peng Yu wrote: Hi, I don't quite understand how -m option is used. And it is difficult to search for -m in google. Could anybody provide me with an example on how to use this option? Thanks! -m module-name Searches sys.path for the named module and

Re: The usage of -m option of python

2013-03-19 Thread Steven D'Aprano
On Mon, 18 Mar 2013 16:17:27 -0500, Peng Yu wrote: > Hi, > > I don't quite understand how -m option is used. And it is difficult to > search for -m in google. Could anybody provide me with an example on how > to use this option? Thanks! > >-m module-name > Searches sys.path

Re: The usage of -m option of python

2013-03-18 Thread Terry Reedy
On 3/18/2013 5:17 PM, Peng Yu wrote: Hi, I don't quite understand how -m option is used. And it is difficult to search for -m in google. Could anybody provide me with an example on how to use this option? python -m test at a command line runs the regression tests in the test package python -m

Re: The usage of -m option of python

2013-03-18 Thread Modulok
>> Hi, >> >> I don't quite understand how -m option is used. And it is difficult to >> search for -m in google. Could anybody provide me with an example on >> how to use this option? Thanks! >> >>-m module-name >> Searches sys.path for the named module and runs the >> correspo

Re: The usage of -m option of python

2013-03-18 Thread Chris Angelico
On Tue, Mar 19, 2013 at 8:17 AM, Peng Yu wrote: > Hi, > > I don't quite understand how -m option is used. And it is difficult to > search for -m in google. Could anybody provide me with an example on > how to use this option? Thanks! > >-m module-name > Searches sys.path for

The usage of -m option of python

2013-03-18 Thread Peng Yu
Hi, I don't quite understand how -m option is used. And it is difficult to search for -m in google. Could anybody provide me with an example on how to use this option? Thanks! -m module-name Searches sys.path for the named module and runs the corresponding .py file as a scrip