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


Groups > comp.lang.python > #62780

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 <rustompmody@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'package,': 0.03; 'wiki': 0.03; 'syntax': 0.04; 'explicitly': 0.05; 'subject:Python': 0.06; 'explicit': 0.07; 'tkinter': 0.07; 'prefix': 0.09; 'python': 0.11; 'discussion.': 0.16; 'imports': 0.16; 'separable': 0.16; 'travis': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'print': 0.22; 'install': 0.23; 'planet': 0.24; 'questions:': 0.24; 'specify': 0.24; '(or': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'leave': 0.29; 'am,': 0.29; 'andrew': 0.30; 'dec': 0.30; 'relative': 0.30; 'message- id:@mail.gmail.com': 0.30; 'page.': 0.31; 'subject:what': 0.31; 'compatible': 0.32; 'know.': 0.32; 'python.org': 0.32; 'themselves': 0.32; 'another': 0.32; 'says': 0.33; 'fri,': 0.33; 'style': 0.33; 'maybe': 0.34; 'subject:the': 0.34; 'classes': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'largely': 0.36; 'shows': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'should': 0.36; 'two': 0.37; 'starting': 0.37; 'to:addr:python-list': 0.38; 'that,': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'future': 0.60; 'warm': 0.60; 'new': 0.61; 'kind': 0.63; 'such': 0.63; 'dont': 0.67; 'believe': 0.68; 'default': 0.69; 'funny': 0.74; '(ie': 0.84; 'boy,': 0.84; 'heat': 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=eA75s1b+qF7JT+l4bda8ulTubNshL5So508OOkWGi7U=; b=OXU/D7WGcqK2MgTf1ttnD6+OJ1K2WoV9IhEmh5yR2dT2EzYBODLNcksi8bC+ahmlIa 6qxRdlOgTD7tPlPRiRL4JPEhGVajtkHCgx6J0tIPhCQOstvS4fCwaPtbQ6HYq/lJwJc7 0QFyQWwXriohe0PtIQg9OWE1sNFbP4fdhPKBdfozP3dYkv7bOBPfH1rZC8JbxP0OZtwK rFnuBCX705SLMvxgnJwuqbImG04hMes04+Ov1oOzxcTl6CkLwPGoINnW5/GlrEuiqHQE c3+8/qmvGwfowY9gs1nYrBRTq+Q8taxEWpWlyo5pKnEAq8UM4u2mKjIgFUdSe/FVnTWU wxSg==
X-Received by 10.66.231.6 with SMTP id tc6mr49126703pac.68.1388123023085; Thu, 26 Dec 2013 21:43:43 -0800 (PST)
MIME-Version 1.0
In-Reply-To <52BD0E12.3040108@gmail.com>
References <XT7vu.64127$Qi4.25759@fx11.iad> <52BD0E12.3040108@gmail.com>
From Rustom Mody <rustompmody@gmail.com>
Date Fri, 27 Dec 2013 11:13:23 +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.4656.1388123406.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388123406 news.xs4all.nl 2967 [2001:888:2000:d::a6]:36257
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62780

Show key headers only | View raw


On Fri, Dec 27, 2013 at 10:50 AM, Andrew Berg <robotsondrugs@gmail.com> wrote:
> On 2013.12.26 23:04, Travis McGee 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.
>>
> Oh boy, another 2 vs. 3 thread!

I believe that this is separable into at least two questions:

1. Whats the deal about 2 and 3, as in where on the
past-present-future do these sit

2. How to write software that is 2+3 compatible

As for 1 its the much heat little light kind of discussion. I'll leave
others to warm themselves and the planet

As for 2 maybe we need a wiki page. (Or do we have one already?)
Heres my largely ignoramus attempt at starting that:

1. print: Use print with (). Dont use funny 2 syntax
2. Always write strings with a u" prefix
3. Always use new style classes
4. Always use relative imports with explicit relative (ie use .)

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