The usage of -m option of python

Albert van der Horst albert at spenarnc.xs4all.nl
Mon Apr 8 10:50:26 EDT 2013


In article <mailman.3484.1363662214.2939.python-list at python.org>,
Terry Reedy  <tjreedy at udel.edu> 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 regression tests in the test package
>python -m test -v test_difflib
>runs test.test_difflib in verbose mode.

I get for both :
"/usr/bin/python: test is a package and cannot be directly executed."

What gives?

(Official stable Debian distribution. Python 2.7)

>--
>Terry Jan Reedy
>

Groetjes Albert
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert at spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst




More information about the Python-list mailing list