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


Groups > comp.lang.python > #62774

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!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'package,': 0.03; 'yet.': 0.04; 'explicitly': 0.05; 'subject:Python': 0.06; 'tkinter': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; '2.7': 0.14; '"python",': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'travis': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'specify': 0.24; 'stick': 0.24; 'fairly': 0.24; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'subject:what': 0.31; 'figure': 0.32; 'know.': 0.32; 'python.org': 0.32; 'another': 0.32; 'linux': 0.33; 'says': 0.33; 'everyone': 0.33; 'running': 0.33; 'fri,': 0.33; 'subject:the': 0.34; 'problem': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'shows': 0.36; 'subject:?': 0.36; 'should': 0.36; 'pm,': 0.38; 'that,': 0.38; 'recent': 0.39; 'users': 0.40; 'future': 0.60; 'most': 0.60; 'new': 0.61; "you're": 0.61; "you'll": 0.62; 'name': 0.63; 'such': 0.63; 'more': 0.64; 'here': 0.66; 'latest': 0.67; 'smith': 0.68; 'default': 0.69; 'article': 0.77; 'safe.': 0.84; '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=M7i3pm2FuEXq8sWaodmyseUueoltR6jm0SHmy5KXdRo=; b=UwbJjK81YFsfZYYlLSuks4S+Fa1PQm/dXc1timP/CqvbevHWvmcaARefoHKf/Mp3AK t2kdDtmGD+Ch/niidVJoHFL15fb1fpjJGYg1WtKyYl19aRMcPsP46C11hnjxMOsXB2zO at8Cma5cxJb1l5LvQm9AkrP5IEAmeIVTBRjU5qq1u8wokEUSCEfDNwmNqtThDVqJ4+Nm gxypUUqKKC0CnPpL8Rs/kSyljOiJiiCflnnd19wcC+TDcmFkin1GDPVsN4OXo2KJv24F pvdu8jF5OnNJCh69q8WaucObsMAaTmo/waGsjdnqIXBsjzVKWAEqvqHWyZvNPBxuwY6a eZkw==
MIME-Version 1.0
X-Received by 10.68.247.6 with SMTP id ya6mr42909237pbc.45.1388121271756; Thu, 26 Dec 2013 21:14:31 -0800 (PST)
In-Reply-To <roy-FD8102.00070027122013@news.panix.com>
References <XT7vu.64127$Qi4.25759@fx11.iad> <roy-FD8102.00070027122013@news.panix.com>
Date Fri, 27 Dec 2013 16:14:31 +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.4651.1388121281.18130.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388121281 news.xs4all.nl 2892 [2001:888:2000:d::a6]:48066
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62774

Show key headers only | View raw


On Fri, Dec 27, 2013 at 4:07 PM, Roy Smith <roy@panix.com> wrote:
> In article <XT7vu.64127$Qi4.25759@fx11.iad>,
>  Travis McGee <nobody@nowhere.com> wrote:
>
>> The Python.org site says that the future is Python 3, yet whenever I try
>> something new in Python, such as Tkinter which I am learning now,
>> everything seems to default to Python 2. By this I mean that, whenever I
>> find that I need to install another package, it shows up as Python 2
>> unless I explicitly specify Python 3.
>>
>> What's the deal? If I want to make a distributable software package,
>> should it be 2 or 3? Enquiring minds want to know.
>
> The future is indeed Python 3.  The problem with the future is that it's
> not here yet.

Or to be more precise, is not exclusively here yet. The past is Python
2; the future is Python 3. The present is both Pythons, running in
parallel; if you're lucky, that's 2.7 and the latest 3.x, though not
everyone has that luxury.

For new code, aim for Python 3 unless you have a good reason to go for
Python 2. Most Linux distributions come with Python 2 under the name
"python", and Python 3 under the name "python3"; stick with that and
you'll be fairly safe. Or, if you can depend on your users having a
recent Py3 installed, you can use the launcher packaged with 3.3 and
later, which can intelligently figure out versioning.

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