Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Zachary Ware Newsgroups: comp.lang.python Subject: Re: What meaning is of '#!python'? Date: Sat, 14 Nov 2015 20:26:50 -0600 Lines: 20 Sender: zachary.ware@gmail.com Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de ehbjd6j2grYE/gw71zaqlw5JC7tAU4lndrAN8MbTEUwg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python",': 0.09; 'received:209.85.218': 0.10; 'python': 0.10; 'subject:python': 0.14; '7:58': 0.16; 'placeholder': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'sender:addr:gmail.com': 0.18; 'platforms': 0.18; '2015': 0.20; 'to:name:python- list@python.org': 0.20; 'sat,': 0.23; 'unix': 0.24; 'header:In- Reply-To:1': 0.24; 'example': 0.26; 'chris': 0.26; 'message- id:@mail.gmail.com': 0.27; '14,': 0.27; 'that.': 0.30; 'code': 0.30; '15,': 0.30; 'probably': 0.31; 'though.': 0.33; 'windows.': 0.33; 'file': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'asking': 0.35; 'there': 0.36; 'received:209.85': 0.36; 'to:addr :python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; "didn't": 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'skip:n 10': 0.62; 'please,': 0.63 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=vo78EG0I/He8ZXjfzI6DhZsFjK8T+axk8B+C9KqBk9A=; b=JMrYYOoW1mC7k77TzA/2e3vlRl3KLVZdFQYX6WtFTKn1S3eDasrKR0TM9hSm+vfbOW 0UMxPTwjAjRXr43ZftwU0a3rh+FuMwAexjbMxsDReB+MahRbXxAFWSzVsM5eS/oFMHcU 1RYlbZasQ9CooS/f0ArwEnmN0cwmDaimxF6TO9qFCMsWFNcaMHsTXiIPXd+GwgRcvkq/ j5ZkCuKApUW5A/LrDgBtd07stBHl+ipRzEfqtt7SBZ0RGloWlkjbV10je04H1+gDhy6N Ma41jVD16CRK3hIZ2mDXccf2suCzHIn5+bQvk1L44Y+mb5y62yyAM5yNiF2BxdlFxBh+ nHEQ== X-Received: by 10.202.186.198 with SMTP id k189mr16223682oif.105.1447554429376; Sat, 14 Nov 2015 18:27:09 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: dgVSd1brr4KXJ8_hfobl5Iu-w8U X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98845 On Sat, Nov 14, 2015 at 7:58 PM, Chris Angelico wrote: > On Sun, Nov 15, 2015 at 12:54 PM, fl wrote: >> I see an example Python code has such a line at the file beginning: >> >> #!python >> >> >> Is there some meaning about it? > > It probably didn't look exactly like that. Please, when you're asking > questions, COPY AND PASTE rather than retyping some approximation of > what you saw. "#!python" is a valid shebang for the Python Launcher for Windows. It's also a not-too-terrible placeholder for a Unix shebang meaning "whichever Python you want it to be". The better choice for use with both platforms would be "#!/usr/bin/env python", though. -- Zach