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: 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: References: Date: Tue, 19 Mar 2013 08:35:04 +1100 Subject: Re: The usage of -m option of python From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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 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