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


Groups > comp.lang.python > #62778

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <drsalists@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'scripts': 0.03; 'package,': 0.03; 'subject:Python': 0.06; '2to3': 0.09; 'committing': 0.09; 'decision.': 0.09; 'dependency': 0.09; 'option,': 0.09; 'runs': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'changes': 0.15; 'both,': 0.16; 'cc:name:python list': 0.16; 'happily': 0.16; 'personally,': 0.16; 'portable': 0.16; 'pygtk,': 0.16; 'travis': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; '2.x': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; '3.x': 0.31; 'subject:what': 0.31; 'know.': 0.32; 'run': 0.32; 'alone': 0.33; 'subject:the': 0.34; "i'd": 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'really': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'being': 0.38; 'pm,': 0.38; 'bad': 0.39; 'called': 0.40; 'even': 0.60; 'most': 0.60; 'today.': 0.61; 'between': 0.67; '26,': 0.68; 'carefully': 0.74; 'to:addr:nobody': 0.96; '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 :cc:content-type; bh=rrrG4+wLRQPF4WKB2uQLyBebajPo+wuwns7rIEkltkI=; b=P2k/mcaSd2yVGV+K5bqqFjsbVDM6CUsgZdaB4V3ZxhTI/czsbiVMS8tUx3cnTkt5n0 xjplweXXr9pfG3/NqdND++qXkQS3rF+YcaKnE6bToxW2iE8uGwj1RHO1wELkiaCJy+DD 6Dc4hKUF1Tj9Ku0wYmKWMgKaYKySXXCWwgsRQnIhiY8C6+44zuQ3elbKbnpc+k/mxEHX n1OFohKmq1wfUNoLB0qf/6UgegADHzYs54at9DCMlYiOUAAeQcL6PWz6v2DU0jeWEc+f K1wv2ERPPyMWJBRhuADnFy8SL1RuSr1gaxtY9rDFABVORK+iSuRJRdMK/uRmQBUwT5gE yZcQ==
MIME-Version 1.0
X-Received by 10.194.60.103 with SMTP id g7mr32352399wjr.37.1388122180854; Thu, 26 Dec 2013 21:29:40 -0800 (PST)
In-Reply-To <XT7vu.64127$Qi4.25759@fx11.iad>
References <XT7vu.64127$Qi4.25759@fx11.iad>
Date Thu, 26 Dec 2013 21:29:40 -0800
Subject Re: So, what's the real story on Python 2 vs Python 3?
From Dan Stromberg <drsalists@gmail.com>
To Travis McGee <nobody@nowhere.com>
Content-Type text/plain; charset=ISO-8859-1
Cc Python List <python-list@python.org>
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.4655.1388122187.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388122187 news.xs4all.nl 2838 [2001:888:2000:d::a6]:58333
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62778

Show key headers only | View raw


On Thu, Dec 26, 2013 at 9:04 PM, Travis McGee <nobody@nowhere.com> wrote:
> What's the deal? If I want to make a distributable software package, should
> it be 2 or 3? Enquiring minds want to know.

3.x alone isn't a bad option, but it doesn't really have to be an
either-or decision.  That is, even pretty substantial code bases can
run on both, without any 2to3 or 3to2.

Personally, I'd think very carefully before committing to a dependency
that's still 2.x-only today.

EG, when I was looking for a 3.x version of pygtk, it turned out that
pygtk was being replaced by something called "gobject", which runs on
both 2.x and 3.x.  I happily made my pygtk scripts use gobject, and
now they're portable between 2.x and 3.x - there was even a script
provided that made most of the changes for me.

Here's a link to a presentation I did at my local Python User Group
about writing code to run on both 2.x and 3.x:
http://stromberg.dnsalias.org/~dstromberg/Intro-to-Python/

HTH

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