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


Groups > comp.lang.python > #98845

Re: What meaning is of '#!python'?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Zachary Ware <zachary.ware+pylist@gmail.com>
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 <mailman.343.1447554433.16136.python-list@python.org> (permalink)
References <ed2472ca-7efb-4676-b49e-356260dd533c@googlegroups.com> <CAPTjJmoNjpFKUgfOiejtLTjLK+yqx-MAtdGzEj4QNxcuxq4T4Q@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de ehbjd6j2grYE/gw71zaqlw5JC7tAU4lndrAN8MbTEUwg==
Return-Path <zachary.ware@gmail.com>
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 <CAPTjJmoNjpFKUgfOiejtLTjLK+yqx-MAtdGzEj4QNxcuxq4T4Q@mail.gmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98845

Show key headers only | View raw


On Sat, Nov 14, 2015 at 7:58 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Sun, Nov 15, 2015 at 12:54 PM, fl <rxjwg98@gmail.com> 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

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


Thread

What meaning is of '#!python'? fl <rxjwg98@gmail.com> - 2015-11-14 17:54 -0800
  Re: What meaning is of '#!python'? Chris Angelico <rosuav@gmail.com> - 2015-11-15 12:58 +1100
    Re: What meaning is of '#!python'? fl <rxjwg98@gmail.com> - 2015-11-14 18:13 -0800
      Re: What meaning is of '#!python'? Chris Angelico <rosuav@gmail.com> - 2015-11-15 13:18 +1100
      Re: What meaning is of '#!python'? Rob Hills <rhills@medimorphosis.com.au> - 2015-11-15 11:10 +0800
  Re: What meaning is of '#!python'? Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-11-14 20:26 -0600
  Re: What meaning is of '#!python'? Michael Torrie <torriem@gmail.com> - 2015-11-14 19:28 -0700
  Re: What meaning is of '#!python'? eryksun <eryksun@gmail.com> - 2015-11-14 23:57 -0600
  Re: What meaning is of '#!python'? <paul.hermeneutic@gmail.com> - 2015-11-15 21:54 -0700

csiph-web