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


Groups > comp.lang.python > #41462 > unrolled thread

Re: The usage of -m option of python

Started byChris Angelico <rosuav@gmail.com>
First post2013-03-19 08:35 +1100
Last post2013-03-19 08:35 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#41462 — Re: The usage of -m option of python

FromChris Angelico <rosuav@gmail.com>
Date2013-03-19 08:35 +1100
SubjectRe: The usage of -m option of python
Message-ID<mailman.3478.1363642507.2939.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web