Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'url:launchpad': 0.05; 'subject:PEP': 0.07; 'python': 0.09; 'logic': 0.09; 'received:212.227.126': 0.09; 'cc:addr:python- list': 0.10; 'subject:python': 0.11; 'skip:# 20': 0.13; '(which,': 0.16; 'received:212.227.126.171': 0.16; 'duplicate': 0.17; 'windows': 0.19; 'appropriate': 0.20; 'subject:) ': 0.20; 'meant': 0.21; '3.2': 0.22; 'runs': 0.22; 'this:': 0.23; 'cc:no real name:2**0': 0.24; 'url:bugs': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'run': 0.28; 'writes:': 0.29; 'saves': 0.30; 'code': 0.31; 'should': 0.36; 'subject: (': 0.36; 'uses': 0.37; 'subject:: ': 0.38; 'subject:-': 0.40; 'thomas': 0.62; 'to:addr:yahoo.co.uk': 0.84 Date: Fri, 01 Feb 2013 08:13:14 +0100 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 MIME-Version: 1.0 To: Vinay Sajip Subject: Re: Python launcher (PEP 397) and emacs python-mode.el References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:oSZ1gCQUp2WGKrLwom3C1xDvZhr+AOMm7l8fgbn1KSC NyQFA30phcQWAHP+p8QVpW92bXrUz0RK4w8V73v94EZ+XtFC1d owrwxjAmbqpamp4melGIXCtfWT++pYy7SNE0hkfPb6CHEOPkop 69hS/s+Guy0mB/JB5pfoXtaURmRV7nMEnMspyRhsV/OdpG7o4M zvYt/MnaS5pU6n4ZaLTOQsH3O+WglvodLUsT5OXqxLIYtf54pN zd0tk/NArkTUSzrri4zw703jrc5D9rq7Cg6QR5Enr0q8Ex+tLD IOhFfIe1CcMg2+yrs8SD4Yk/GFmAX+MsRrMM3X8JNh6hxkpPiN /udPVijBUHsf542EwRWw= Cc: Thomas Heller , python-list@python.org 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359702822 news.xs4all.nl 6868 [2001:888:2000:d::a6]:60750 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38031 Am 01.02.2013 00:59, schrieb Vinay Sajip: > Thomas Heller ctypes.org> writes: > >> What I meant to write is this: >> >> when the shebang line in script.py contains this: >> #!/usr/bin/python3.1-32 >> then emacs SHOULD run >> py.exe -3.1-32 script.py >> and the launcher runs >> c:\Python31\python.exe script.py > > IMO it would be better for emacs to just run > > py.exe script.py > > and py.exe can read the shebang and do the right thing. This saves the emacs code > from having to duplicate the shebang line processing logic that py.exe uses > (which, as we know, is unusual. So for a cross-platform you can have a shebang > line of #!/usr/bin/python3.2, and on Windows it will still call the appropriate > Python 3.2 even if it's not in /usr/bin, as there's no /usr/bin :-)) > > Regards, > > Vinay Sajip > > > https://bugs.launchpad.net/python-mode/+bug/1112207