Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41462

Re: The usage of -m option of python

References <CABrM6wkuKu9XSbk4JKpEvX4Dfh=n2UKB4UmaRSTyV45Ezd2mYQ@mail.gmail.com>
Date 2013-03-19 08:35 +1100
Subject Re: The usage of -m option of python
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3478.1363642507.2939.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Mar 19, 2013 at 8:17 AM, Peng Yu <pengyu.ut@gmail.com> 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 runs the
> corresponding .py file as a script.

Well, I just searched for 'python m module', but I agree it's not
easy. Anyway, Google read my mind and returned this:

http://www.python.org/dev/peps/pep-0338/

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: The usage of -m option of python Chris Angelico <rosuav@gmail.com> - 2013-03-19 08:35 +1100

csiph-web