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


Groups > comp.lang.python > #39604

Re: Shebang line on Windows?

Path csiph.com!usenet.pasdenom.info!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!nuzba.szn.dk!pnx.dk!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'linux,': 0.05; 'executable': 0.07; 'subject:Windows': 0.09; 'python': 0.09; 'scripts,': 0.09; 'windows,': 0.09; 'itself.': 0.11; 'wrote:': 0.17; 'version.': 0.17; 'windows': 0.19; 'appropriate': 0.20; 'this:': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'question': 0.27; 'run': 0.28; 'loads': 0.29; 'more,': 0.32; 'to:addr:python-list': 0.33; 'pm,': 0.35; 'subject:?': 0.35; 'but': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'called': 0.39; 'received:192.168': 0.40; 'son': 0.60; 'useful.': 0.65; 'received:74.208': 0.71; 'examines': 0.84; 'ok?': 0.84
Date Fri, 22 Feb 2013 13:40:32 -0500
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
MIME-Version 1.0
To python-list@python.org
Subject Re: Shebang line on Windows?
References <kg8cm0$flo$1@news.albasani.net>
In-Reply-To <kg8cm0$flo$1@news.albasani.net>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:jHtLJW0hXPfNmo3HAwmznuSLcXu6Toq6VxRuWSUXT/l bRxu4VSjuc6ZEOGvLJhmJzOlSJFvQzw2xM/ELU9YKYj+mF/yrp 19iMkuKTUtjj0NomWe8Po4uelVWkptZisUk/zcKW65RqG1TZtx dwHkfFTBQ9Os5VoWTbYpLYaRAQs/dd8Lsntft1RtXaBwaSIxHh 32G4XkeJwZ1UhDFG2Lb1mEwcLnOVFM4oY4wK7j6Vfwn6PzVICk sxn+XOZDa+tMnshelqsunAJ3R68R+PwnSCoKcBU+hxBJJIOz2c ksbXcLmKkxK1vwd4NCNZV9fMH9I6FoFUMcHHkuHVPzR12iawA= =
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.2293.1361558458.2939.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361558458 news.xs4all.nl 6968 [2001:888:2000:d::a6]:50514
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39604

Show key headers only | View raw


On 02/22/2013 01:16 PM, Walter Hurry wrote:
> I use FreeBSD or Linux, but my son is learning Python and is using
> Windows.
>
> My question is this: Would it be good practice for him to put #!/usr/bin/
> env python at the top of his scripts, so that if made executable on *nix
> they will be OK? As I understand it this will have no effect on Windows
> itself.
>

In Python 3.3 under Windows, the shebang line is useful.  You run a 
program called py, which  examines the shebang, then loads the 
appropriate version.  I don't know much more, as I don't run Windows.

-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Shebang line on Windows? Walter Hurry <walterhurry@lavabit.com> - 2013-02-22 18:16 +0000
  Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-22 13:40 -0500
  Re: Shebang line on Windows? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-02-22 12:40 -0600
    Re: Shebang line on Windows? James Harris <james.harris.1@gmail.com> - 2013-02-22 14:53 -0800
      Re: Shebang line on Windows? MRAB <python@mrabarnett.plus.com> - 2013-02-22 23:21 +0000
      RE: Shebang line on Windows? "Sells, Fred" <fred.sells@adventistcare.org> - 2013-02-25 12:35 +0000
      Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-25 08:14 -0500
      Re: Shebang line on Windows? Chris Gonnerman <chris@gonnerman.org> - 2013-02-25 07:28 -0600
      Re: Shebang line on Windows? Chris Angelico <rosuav@gmail.com> - 2013-02-26 00:54 +1100
      Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 10:18 -0700
        Re: Shebang line on Windows? Anssi Saari <as@sci.fi> - 2013-02-26 16:30 +0200
      Re: Shebang line on Windows? "D'Arcy J.M. Cain" <darcy@druid.net> - 2013-02-25 12:29 -0500
        Re: Shebang line on Windows? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-26 00:52 +0000
          Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 19:08 -0700
          Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-25 21:23 -0500
          Re: Shebang line on Windows? MRAB <python@mrabarnett.plus.com> - 2013-02-26 03:08 +0000
          Re: Shebang line on Windows? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-25 22:44 -0500
      Re: Shebang line on Windows? David Robinow <drobinow@gmail.com> - 2013-02-25 13:19 -0500
      Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 11:29 -0700
      Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 11:33 -0700

csiph-web