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


Groups > comp.lang.python > #62787

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rustompmody@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; 'subject:Python': 0.06; 'string': 0.09; '2to3': 0.09; '3.0,': 0.09; 'dan': 0.09; 'prefix': 0.09; 'url:blog': 0.10; 'python': 0.11; '3.3,': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'app': 0.19; 'thu,': 0.19; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; '3.2': 0.31; 'exceptions': 0.31; 'subject:what': 0.31; 'run': 0.32; 'ago': 0.33; 'fri,': 0.33; 'subject:the': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'project': 0.37; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; '26,': 0.68; 'whereas': 0.91; '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:from:date:message-id:subject:to :content-type; bh=UqYB2A+V8RBH3RGT9UhVITyxSbUYi3hZfOkan+0Hd/c=; b=HB8i+BnAMGMklPFGm08AVHJC6hzqnncYrZGVcYGbuH2AwkE7jzAX8+BM89aXspKJT4 JqOiP0wj1mknmHjCUsbrtwHXVSvWf1kp7zCQH93zyJ50IaxsjLP7XbCMW3JjTd3YG+7+ pREsxnwM+CPkwluc679u75htGooUwNDE56EdR83RDbahCUIopoyR0dEeeiRnOXnHSbOE 3jNtI+S7Kl8GZF8CSwEQCjS4ddSsbbshD13K5NzVAY4DdA2nojyQg4uYd3HuuhDi4kxw lVIxIsSokjCD57oEgwTZsOV4ArKGMJ7dhwEKPTajzO0OeFTTJn2qMt5owv5o5liuT+Km s6JA==
X-Received by 10.66.230.233 with SMTP id tb9mr49742106pac.38.1388141520854; Fri, 27 Dec 2013 02:52:00 -0800 (PST)
MIME-Version 1.0
In-Reply-To <CAGGBd_rfjwcGxNqeMLfPT1AkXNORNgCY-DDu4sr-EOQBSS2fKw@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>
From Rustom Mody <rustompmody@gmail.com>
Date Fri, 27 Dec 2013 16:21:40 +0530
Subject Re: So, what's the real story on Python 2 vs Python 3?
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 <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.4660.1388141524.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388141524 news.xs4all.nl 2957 [2001:888:2000:d::a6]:39748
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62787

Show key headers only | View raw


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.

>
> In a project I wanted to run on 2.5, 2.6, 2.7, 3.0, 3.1, 3.2 and 3.3,

Obviously my assumption may not always be 'assumable' eg sometime ago
there was someone who wanted to port his old working python app to 3.
2to3 was not working because he was using string exceptions (His code
was 1.something!!)


-- 

http://blog.languager.org

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