Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!texta.sil.at!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'anyway.': 0.05; 'interpreter': 0.05; 'python3': 0.07; 'python': 0.11; '"python': 0.16; '(assuming': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'specifying': 0.16; 'subject:python': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'command': 0.22; 'example': 0.22; 'separate': 0.22; 'header:User- Agent:1': 0.23; '(by': 0.24; "i've": 0.25; 'script': 0.25; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'fine,': 0.31; 'invoke': 0.31; 'run': 0.32; 'doing': 0.36; 'should': 0.36; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'simply': 0.61; "you're": 0.61; 'etc),': 0.84; 'ware': 0.91 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Thu, 20 Mar 2014 15:44:27 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: running python 2 vs 3 References: <87ob10nbeh.fsf@elektro.pacujo.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395353402 news.xs4all.nl 2837 [2001:888:2000:d::a6]:48931 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68631 On 03/20/2014 11:10 AM, notbob wrote: > On 2014-03-20, Zachary Ware wrote: > >> If you're specifying the interpreter in your command (by calling >> "python .py", etc), the shebang won't mean anything >> anyway. > > DOH! > > I was following you, fine, until that last sentence. Then how should > I invoke the scripts? ....as your example is exactly how I've been > doing it with 2.7, as per Learn Python the Hard Way. Simply > ./.py from the appropriate directory (assuming I keep both > vers in separate dirs)?' If you want to run a script with python3, just invoke the python3 interpreter: python3 blah.py