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


Groups > comp.lang.python > #51295

Re: Python Script Hashplings

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'mrab': 0.05; 'subject:Python': 0.06; 'installed.': 0.07; 'python3': 0.07; 'sys': 0.07; 'collier': 0.09; 'falls': 0.09; '2.7': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'uninstall': 0.16; 'skip:# 20': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'import': 0.22; 'him.': 0.24; 'script': 0.25; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; 'run': 0.32; 'another': 0.32; 'fri,': 0.33; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'work?': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'hope': 0.61; 'back': 0.62; 'different': 0.65; 'due': 0.66; '26,': 0.68; 'computers': 0.72; 'jul': 0.74; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xK/RdCraZw2aGN+RTLhq1vmf6CkT/evWsUokqTZyyM0=; b=vNeJREgufG3h9ilEx80tjyaAr96bp1q1cXqUmfD+UJCEdgbk1TXim8LriJLHtM2G3f Sq93lln+9+P5ZHsjjrBhJaxI3cCSjXr34tG7Rabi4MTkifH/VFXBHaZdrVfWr15Zk9Z6 P0DQ3X9jh+88Sm4l4Njjc9a37T3cDcKt4TvNEbpQfubfmhBEEaO0ZbojTRjaKMwLvoQg IYXGwi8sbPSLbwipET5IQwU1O/tjHDNVTKX6S6+9O9035HmXJVcHdIDl1AvPNPCwnbze 2Zq+aMLBCiGgo93TI80uQ2SPvlxFPiV9mJdutHGshALTUVUo0/aqy+MAwGCjimIBO2+l 2zGw==
MIME-Version 1.0
X-Received by 10.52.178.194 with SMTP id da2mr6235507vdc.28.1374835387536; Fri, 26 Jul 2013 03:43:07 -0700 (PDT)
In-Reply-To <51F2517D.2070009@Gmail.com>
References <51F12B41.3050004@Gmail.com> <51F12E31.1070502@mrabarnett.plus.com> <51F2517D.2070009@Gmail.com>
Date Fri, 26 Jul 2013 11:43:07 +0100
Subject Re: Python Script Hashplings
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.5142.1374835390.3114.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1374835390 news.xs4all.nl 15959 [2001:888:2000:d::a6]:47647
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51295

Show key headers only | View raw


On Fri, Jul 26, 2013 at 11:37 AM, Devyn Collier Johnson
<devyncjohnson@gmail.com> wrote:
>
> On 07/25/2013 09:54 AM, MRAB 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.
>>>
>>
> Good point, but if it falls back to Python3.2, how would I know? Plus, I
> have Python3.3, 3.2, and 2.7 installed. I cannot uninstall them due to
> dependencies.

Easy:

#!/usr/bin/python3.3
import sys
print(sys.version)

Now run that on lots of different computers (virtual computers work
well for this).

ChrisA

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


Thread

Re: Python Script Hashplings Chris Angelico <rosuav@gmail.com> - 2013-07-26 11:43 +0100

csiph-web