Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51303
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| 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; 'mrab': 0.05; 'subject:Python': 0.06; 'installed.': 0.07; 'python3': 0.07; 'sys': 0.07; 'collier': 0.09; 'falls': 0.09; 'python': 0.11; '2.7': 0.14; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'uninstall': 0.16; 'skip:# 20': 0.16; ':-)': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; 'him.': 0.24; 'script': 0.25; 'header :In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'skip:( 20': 0.30; '>>>>': 0.31; 'run': 0.32; 'another': 0.32; 'fri,': 0.33; 'johnson': 0.35; 'test': 0.35; 'but': 0.35; 'version': 0.36; 'doubt': 0.36; 'version,': 0.38; 'work?': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'future': 0.60; 'hope': 0.61; 'back': 0.62; 'such': 0.63; 'happen': 0.63; 'different': 0.65; 'due': 0.66; 'header:Reply-To:1': 0.67; '26,': 0.68; 'reply-to:no real name:2**0': 0.71; 'computers': 0.72; 'jul': 0.74; 'reply-to:addr:python.org': 0.84; '2013': 0.98 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.1 cv=KrN0hwmN c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=K2DDQYBT4xIA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=IbDnPQt2tGsA:10 a=pGLkceISAAAA:8 a=IUfzp7oHZkGI3HBNcsMA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 |
| X-AUTH | mrabarnett:2500 |
| Date | Fri, 26 Jul 2013 14:53:54 +0100 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Python Script Hashplings |
| References | <51F12B41.3050004@Gmail.com> <51F12E31.1070502@mrabarnett.plus.com> <51F2517D.2070009@Gmail.com> <CAPTjJmo4epku6P1p34w8txvKA4DBbHNECoa33Qah_ReK8r+-vw@mail.gmail.com> |
| In-Reply-To | <CAPTjJmo4epku6P1p34w8txvKA4DBbHNECoa33Qah_ReK8r+-vw@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| 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.5146.1374846837.3114.python-list@python.org> (permalink) |
| Lines | 41 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1374846837 news.xs4all.nl 16000 [2001:888:2000:d::a6]:41732 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:51303 |
Show key headers only | View raw
On 26/07/2013 11:43, Chris Angelico wrote: > 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). > There's also sys.version_info: >>> import sys >>> sys.version_info sys.version_info(major=3, minor=3, micro=2, releaselevel='final', serial=0) If you want to test what would happen if that version wasn't installed, set the shebang line to a future version, such as Python 3.4. I doubt you have that installed! :-)
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python Script Hashplings MRAB <python@mrabarnett.plus.com> - 2013-07-26 14:53 +0100
csiph-web