Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; '(so': 0.07; 'default.': 0.07; 'subject:test': 0.07; 'cc:addr:python- list': 0.09; 'scripts': 0.09; 'complaining': 0.09; 'implies': 0.09; 'vast': 0.09; 'way:': 0.09; 'python': 0.10; 'python.': 0.11; '2.7': 0.13; '"your': 0.16; "(it's": 0.16; '(now': 0.16; '2.7?': 0.16; 'far)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'least.': 0.16; 'ported': 0.16; 'py3': 0.16; 'specifics': 0.16; 'subject:Problem': 0.16; 'subject:case': 0.16; 'subject:simple': 0.16; 'support)': 0.16; 'wrote:': 0.16; 'shipped': 0.18; 'version.': 0.18; 'windows': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'work,': 0.21; 'default,': 0.22; 'code,': 0.23; 'third-party': 0.23; 'header:In- Reply-To:1': 0.24; 'script': 0.25; "doesn't": 0.26; 'developers': 0.26; 'linux': 0.26; 'fri,': 0.27; 'least': 0.27; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'transition': 0.27; 'sure,': 0.29; "i'm": 0.30; 'code': 0.30; 'actively': 0.30; "i'd": 0.31; 'guess': 0.31; 'probably': 0.31; "can't": 0.32; '[1]': 0.32; 'maybe': 0.33; 'point': 0.33; "d'aprano": 0.33; 'jump': 0.33; 'shift': 0.33; 'steven': 0.33; 'surprised': 0.33; 'ubuntu': 0.33; 'quickly': 0.34; 'received:google.com': 0.35; 'done': 0.35; 'supports': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'expect': 0.37; 'mac': 0.37; 'guys': 0.38; 'someone': 0.38; 'mean': 0.38; 'sure': 0.39; "didn't": 0.39; 'subject:with': 0.40; 'some': 0.40; 'easy': 0.60; "you'll": 0.61; 'default': 0.61; 'balance': 0.64; 'matter.': 0.66; "they're": 0.66; 'subject:. ': 0.67; 'jul': 0.72; 'adoption': 0.84; 'chrisa': 0.84; 'extent.': 0.84; "that'll": 0.84; 'to:none': 0.91; 'ships': 0.91; 'stretch': 0.91 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:cc :content-type; bh=sMB6kfBqB8ZMzRpBTcT8ZFVQpUlIAKEuKYd/HOOtBYI=; b=Ty++w/R3xqEVTUsLHvCVRDg2YxGOBFFOIojoJZWmoUFkR6RBR/p62JZWB45Bn7ECaA x9LercUCXyC/qEmEbWEhDOfnKpWs3dkNRClqRzT5uXZxka4H5IG3AsjO5m4iOCzY0RIu sbRmb1AxAeW3n0DCHBJiaUivvRaxsVpr6cIc74I+pgXQXnsaehExXNC+OUK+JpzGkkC4 aPU1Rn7vRjwl6Ay9HEo1WJfbmFtAlImUnbybkLrRh37oeho531Tsr2f7ZKUnxVBjehSD el4adVjdC8pRhA7eVKQPoyGQYwg2UCGXTl96s0PikuCPe28OAFyvz5DECn+iBxfuqLT4 2YkQ== MIME-Version: 1.0 X-Received: by 10.107.4.1 with SMTP id 1mr16405854ioe.10.1437130633834; Fri, 17 Jul 2015 03:57:13 -0700 (PDT) In-Reply-To: <55a8a50a$0$1638$c3e8da3$5496439d@news.astraweb.com> References: <0165e508-b3b4-4a95-b1bb-e115893056f8@googlegroups.com> <79mdneVqW9UGgzrInZ2dnUU7-cOdnZ2d@giganews.com> <049ae0f4-96d1-4155-8618-32c8931febb0@googlegroups.com> <85d372eb-f39d-459d-be71-50ed7c9b966c@googlegroups.com> <55a86c1b$0$1657$c3e8da3$5496439d@news.astraweb.com> <55a8a50a$0$1638$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 17 Jul 2015 20:57:13 +1000 Subject: Re: Noob in Python. Problem with fairly simple test case From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437130637 news.xs4all.nl 2950 [2001:888:2000:d::a6]:40957 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94003 On Fri, Jul 17, 2015 at 4:47 PM, Steven D'Aprano wrote: >> Jessie's default should be 2.7, at least. Wheezy shipped 2.7, too; >> it's only Squeeze (now out of support) that didn't ship any 2.7.x >> Python. Are you sure you can't at least upgrade to 2.7? > > I'm not sure, I'm not actively involved in that specific project. All I know > is that the guys are always complaining about Jessie, and that they're > using 2.6. Huh. Then maybe it's the other way: Jessie no longer ships or supports 2.6, so if 2.7 breaks the code, then so will Jessie. But I'm looking over the 2.7 What's New page, and it honestly doesn't jump out at me screaming "Your code will break!". Strange. Anyway, the specifics don't matter. What matters is that there *are* people who are using the system-provided Python, and that (so far) that's Py2 for the majority of Linux distros. But that's definitely changing; Ubuntu and Debian are both aiming toward a state of "ship Python 3 by default, but if you want 2.7, you'll have to download it", which implies that all system scripts will be ported to 3.x. Once that happens, I expect that all Debian-derived distros will follow pretty quickly (it's easy to transition if someone else has already done the vast majority of the work, by which I clearly mean about 87.4%), and non-Debian distros can probably take advantage of the prior work too, to some extent. That'll shift the balance on Linux from "mostly Py2" to "mostly Py3", and that'll have knock-on effects on Windows and Mac OS too, as third-party script developers will find it advisable [1] to write their code to match the predominantly available version. > My guess is, the rate of Python 3 adoption is going to hit the tipping point > in 2 or 3 years, after which time it will be *very* rapid. Yep, I'd agree with that estimate. Debian Stretch (9) may or may not switch; I'd be very surprised if Debian Buster (10) didn't have Py3 by default. ChrisA [1] The question is, what did the archbishop find?