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

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; "'python": 0.07; 'used.': 0.07; 'url:peps': 0.09; 'subject:python': 0.11; '.py': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:usage': 0.16; 'sys.path': 0.16; 'wrote:': 0.17; 'script.': 0.17; 'url:dev': 0.17; 'module': 0.19; 'runs': 0.22; 'example': 0.23; 'this:': 0.23; 'header:In-Reply-To:1': 0.25; 'thanks!': 0.26; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'searches': 0.29; 'returned': 0.30; 'url:python': 0.32; 'file': 0.32; 'anybody': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'agree': 0.34; 'received:google.com': 0.34; 'but': 0.36; 'url:org': 0.36; 'option': 0.37; 'quite': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'google': 0.39; 'provide': 0.62; 'subject:The': 0.71; '2013': 0.84; 'subject: -': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=WGvb7h3VtgoJJw9aUMFoNeVwyStvm/Zw1o8zGY+3QXA=; b=rf9ozDXHZGR6SkwYeArc31jDpEFuvl5mr2nlJqrfmwjmrYk1hS6DfCZk6iVMAZBdwI AcYoZh7kqYq4RJzhUM2L1smknwlstImCq2/r7CYY0bSSHhfLQP6ayrnfKX2ybYWL7lMj 8A+BPesNyUTMk1+dd58kaMM3/KepVbOAph+jGkYqcQmHzxRyLFE/0UaJNjn5HVz6Ck3C rfCdWGvFuVjv1+MuwZMAYyonLk7vUDwo5rg3QDo4FlCx0EgDvphpzcfSZ0GGPW9J+dxc Jp4NT6++YPeKg8k4Fq9zBzssWWP5zS3y7ScSdMhDIRoR7uEPoVSp4ZlLaWlNRMtiV6by pIGg==
MIME-Version 1.0
X-Received by 10.52.22.194 with SMTP id g2mr19272740vdf.91.1363642504518; Mon, 18 Mar 2013 14:35:04 -0700 (PDT)
In-Reply-To <CABrM6wkuKu9XSbk4JKpEvX4Dfh=n2UKB4UmaRSTyV45Ezd2mYQ@mail.gmail.com>
References <CABrM6wkuKu9XSbk4JKpEvX4Dfh=n2UKB4UmaRSTyV45Ezd2mYQ@mail.gmail.com>
Date Tue, 19 Mar 2013 08:35:04 +1100
Subject Re: The usage of -m option of python
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3478.1363642507.2939.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363642507 news.xs4all.nl 6929 [2001:888:2000:d::a6]:33064
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41462

Show key headers only | 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