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


Groups > comp.lang.python > #62788

Re: So, what's the real story on Python 2 vs Python 3?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'scripts': 0.03; 'subject:Python': 0.06; 'deployed': 0.07; 'versions.': 0.07; '3.0,': 0.09; 'dan': 0.09; 'prefix': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'question.': 0.14; 'agree.': 0.16; 'choose,': 0.16; 'easier.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'happily': 0.16; 'hat,': 0.16; 'it;': 0.16; 'out"': 0.16; 'reasonably': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'bit': 0.19; 'thu,': 0.19; '(the': 0.22; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'unicode': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; 'least': 0.26; 'supported': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'dec': 0.30; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; '3.2': 0.31; '3.x': 0.31; 'are.': 0.31; 'controlled': 0.31; 'subject:what': 0.31; 'probably': 0.32; 'python.org': 0.32; 'linux': 0.33; 'everyone': 0.33; 'fri,': 0.33; 'older': 0.33; 'subject:the': 0.34; 'problem': 0.35; 'except': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'dates': 0.36; 'next': 0.36; 'subject:?': 0.36; 'should': 0.36; 'easiest': 0.38; 'whatever': 0.38; 'pm,': 0.38; 'supporting': 0.39; 'even': 0.60; 'most': 0.60; 'become': 0.64; 'taking': 0.65; 'within': 0.65; '26,': 0.68; '3.4': 0.84; 'ships': 0.84; 'whereas': 0.91; 'to:none': 0.92; '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:cc :content-type; bh=Ka0caQCCihuW02bNTEkVGhdDmh0k1YrGMxzDDQHyO74=; b=yZ5K3HUR+p59hzrvIKhSUDRfO/DfMz5P8eTqJoejl0AkMjczR1FWbMn/chvUJ/ng9a s5LsFi4rxUVuAgScEgvMZZ/AUr0KwAB+8gBLpDrau5jX1pFZLL5ozhS2XdS5EmfVQtip HWfC7q96npLC69AYrYOzEKMaW+Z6kWXa0jbIWLK1Q7rUBZWHUcZQ6gpMBAej4vo3Ffbz Dm/kxSQbmuGIvDuedICZPBJsjAa4Eil0o5BJSFnn48Pk08EVlDWJCwkzJOBy/XWrUcIq pPNCL8JSzOvo0PvxfG56x2I9O0Rkl+QH9FZULrx71Az4D1i7ulLgShPKKuSRLgjuomly WGkQ==
MIME-Version 1.0
X-Received by 10.66.118.71 with SMTP id kk7mr49932337pab.14.1388142376664; Fri, 27 Dec 2013 03:06:16 -0800 (PST)
In-Reply-To <CAJ+TeocrkFA0McQrL9=9-XCZ1KMDHryNCCA_Xv7cpyiGCPXAkg@mail.gmail.com>
References <XT7vu.64127$Qi4.25759@fx11.iad> <52BD0E12.3040108@gmail.com> <CAJ+TeocpeU2d4R-uNrzCyt1B6w55gbdsyenJBp3SaUgpefBL7g@mail.gmail.com> <CAGGBd_rfjwcGxNqeMLfPT1AkXNORNgCY-DDu4sr-EOQBSS2fKw@mail.gmail.com> <CAJ+TeocrkFA0McQrL9=9-XCZ1KMDHryNCCA_Xv7cpyiGCPXAkg@mail.gmail.com>
Date Fri, 27 Dec 2013 22:06:16 +1100
Subject Re: So, what's the real story on Python 2 vs Python 3?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.4661.1388142386.18130.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388142386 news.xs4all.nl 2955 [2001:888:2000:d::a6]:46197
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62788

Show key headers only | View raw


On Fri, Dec 27, 2013 at 9:51 PM, Rustom Mody <rustompmody@gmail.com> wrote:
> On Fri, Dec 27, 2013 at 11:53 AM, Dan Stromberg wrote:
>> On Thu, Dec 26, 2013 at 9:43 PM, Rustom Mody  wrote:
>>> 2. Always write strings with a u" prefix
>> 3.0, 3.1 and 3.2 don't understand this, but 3.3 does.
>
> Ok
> I was writing this under the assumption that 2 is really entrenched
> whereas 3.n is dispensable when 3.n+1 comes out
> At least on my debian box 3.2 recently got obsoleted and removed when
> 3.3 came out.

That's true except for the "comes out" part. Just because python.org
has released a newer 3.x Python doesn't mean everyone has it; Debian
Wheezy (the current stable) ships with 3.2, and Debian Squeeze (the
current oldstable, still supported and will be until some time 2014
probably) ships 3.1. So for scripts that need to be deployed onto one
of the most popular Linux distributions, supporting only 3.3 is pretty
much out of the question. And Red Hat, generally, is supported for
even longer. I don't know what Python versions are going to still be
around for the next ten years, but the easiest way to check would
probably be to see what RHEL support dates and Python versions are.

However, I do broadly agree. For controlled environments, you should
be able to slide from 3.1 to 3.2 to 3.3 to 3.4 on whatever schedule
you choose, and happily drop support for the older versions. But in
less controlled environments, that's a bit harder.

Probably within the next 5 years, it'll become reasonably plausible to
support nothing older than 2.6, and then all those 3.x compatibility
__future__s will be all you need. Well, most of what you need. There
are still fundamental issues with functions not taking Unicode
strings, but that's going to be a problem whatever you do. But life'll
be a lot easier.

ChrisA

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


Thread

So, what's the real story on Python 2 vs Python 3? Travis McGee <nobody@nowhere.com> - 2013-12-27 00:04 -0500
  Re: So, what's the real story on Python 2 vs Python 3? Roy Smith <roy@panix.com> - 2013-12-27 00:07 -0500
    Re: So, what's the real story on Python 2 vs Python 3? Chris Angelico <rosuav@gmail.com> - 2013-12-27 16:14 +1100
  Re: So, what's the real story on Python 2 vs Python 3? Andrew Berg <robotsondrugs@gmail.com> - 2013-12-26 23:20 -0600
    Re: So, what's the real story on Python 2 vs Python 3? Grant Edwards <invalid@invalid.invalid> - 2014-01-02 16:34 +0000
  Re: So, what's the real story on Python 2 vs Python 3? Dan Stromberg <drsalists@gmail.com> - 2013-12-26 21:29 -0800
  Re: So, what's the real story on Python 2 vs Python 3? Rustom Mody <rustompmody@gmail.com> - 2013-12-27 11:13 +0530
  Re: So, what's the real story on Python 2 vs Python 3? Chris Angelico <rosuav@gmail.com> - 2013-12-27 17:00 +1100
  Re: So, what's the real story on Python 2 vs Python 3? Dan Stromberg <drsalists@gmail.com> - 2013-12-26 22:23 -0800
  Re: So, what's the real story on Python 2 vs Python 3? Rustom Mody <rustompmody@gmail.com> - 2013-12-27 16:21 +0530
  Re: So, what's the real story on Python 2 vs Python 3? Chris Angelico <rosuav@gmail.com> - 2013-12-27 22:06 +1100
    Re: So, what's the real story on Python 2 vs Python 3? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-27 22:34 +1100
      Re: So, what's the real story on Python 2 vs Python 3? Chris Angelico <rosuav@gmail.com> - 2013-12-27 22:46 +1100
  Re: So, what's the real story on Python 2 vs Python 3? Ned Batchelder <ned@nedbatchelder.com> - 2013-12-27 07:13 -0500
  Re: So, what's the real story on Python 2 vs Python 3? Grant Edwards <invalid@invalid.invalid> - 2014-01-02 16:28 +0000

csiph-web