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: 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 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: In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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