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


Groups > comp.lang.python > #51294

Re: Python Script Hashplings

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <devyncjohnson@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.05; 'mrab': 0.05; 'say,': 0.05; 'subject:Python': 0.06; 'python3': 0.07; 'collier': 0.09; 'default.': 0.09; 'override': 0.09; 'python': 0.11; 'wrote:': 0.18; 'thu,': 0.19; 'version.': 0.19; 'preferred': 0.22; 'header:User-Agent:1': 0.23; 'form:': 0.24; 'him.': 0.24; 'script': 0.25; 'skip:" 20': 0.27; 'header:In-Reply- To:1': 0.27; 'installed': 0.27; 'point': 0.28; 'am,': 0.29; 'skip:( 20': 0.30; 'url:mailman': 0.30; 'received:10.0.0': 0.31; '25,': 0.31; 'minor': 0.31; 'with,': 0.31; 'another': 0.32; 'url:python': 0.33; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'url:listinfo': 0.36; 'thanks': 0.36; 'received:10.0': 0.36; 'url:org': 0.36; 'received:10': 0.37; 'being': 0.38; 'system,': 0.38; 'work?': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'users': 0.40; 'url:mail': 0.40; 'hope': 0.61; 'back': 0.62; 'latest': 0.67; 'jul': 0.74; 'actually,': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=fMDbOks52yheuf0cH+IwwSDccvsvkcKqOCvsff18cug=; b=zByzia7F+usjqaFX/1Rd0+z9dHSYLEqaE1arzWKsoviWeENJs54a7oVSNepe983RDY 1/neKxv9i/kkzQLnRV5ED3lFN9pRCbv5zgMe2PDZQDXLOSeRSGojC9C3KQKGVem60M0e 7eYYKfifZloYkWBBKOYgYOEarCnSCSQ28GiNngh4JE+T9xZ0p/sOSNjCuIqv5Q4zVL5M 0GfmNU3Mhs0/BxvYAcPQKvpaDpwQU3STNA7bZFsXAzPsAxf8xO1ark6zmUenKyohFggb BNKytP2ASo61B53EBTGAeAeYGzyJXgsnZLYvTA7EkAnIeFiic5BzSjKyske+cg0yTC2G jncQ==
X-Received by 10.60.76.6 with SMTP id g6mr30714418oew.52.1374835291717; Fri, 26 Jul 2013 03:41:31 -0700 (PDT)
Date Fri, 26 Jul 2013 06:41:29 -0400
From Devyn Collier Johnson <devyncjohnson@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version 1.0
To Python Mailing List <python-list@python.org>
Subject Re: Python Script Hashplings
References <51F12B41.3050004@Gmail.com> <51F12E31.1070502@mrabarnett.plus.com> <CAJqEzS2dj4UKDzHa=-OpyzJJHe5UzzMzJPB_Sc-jKa7A9PoNwg@mail.gmail.com>
In-Reply-To <CAJqEzS2dj4UKDzHa=-OpyzJJHe5UzzMzJPB_Sc-jKa7A9PoNwg@mail.gmail.com>
Content-Type multipart/alternative; boundary="------------070006050206040407080601"
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.5141.1374835294.3114.python-list@python.org> (permalink)
Lines 138
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1374835294 news.xs4all.nl 15916 [2001:888:2000:d::a6]:45685
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51294

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 07/25/2013 10:01 AM, Matthew Lefavor wrote:
> The answer is "probably not." If you just want to use the latest 
> version of Python 3 you have installed on your system, use: 
> "#!/usr/bin/python3". When you use the specific minor version numbers, 
> they point to that specific minor version.
>
> Actually, the preferred shebang line is of the form: "#!/usr/bin/env 
> python3". This way the end users can override the interpreter with, 
> say, a virtualenv, rather than being stuck with the system default.
>
>
> On Thu, Jul 25, 2013 at 9:54 AM, MRAB <python@mrabarnett.plus.com 
> <mailto:python@mrabarnett.plus.com>> wrote:
>
>     On 25/07/2013 14:42, Devyn Collier Johnson wrote:
>
>         If I execute a Python3 script with this haspling
>         (#!/usr/bin/python3.3)
>         and Python3.3 is not installed, but Python3.2 is installed,
>         would the
>         script still work? Would it fall back to Python3.2?
>
>     Why don't you try it?
>
>
>         I hope Dihedral is listening. I would like to see another
>         response from HIM.
>
>
>     -- 
>     http://mail.python.org/mailman/listinfo/python-list
>
>
>
>

Thanks Matthew Lefavor! But specifically, why use "#!/usr/bin/env 
python3" instead of "#!/usr/bin/python3"?

Mahalo,

DCJ

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


Thread

Re: Python Script Hashplings Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-26 06:41 -0400

csiph-web