Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'python,': 0.02; 'package,': 0.03; 'explicitly': 0.05; 'subject:Python': 0.06; 'pypi': 0.07; 'tkinter': 0.07; 'properly.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'thrown': 0.09; 'python': 0.11; '"default"': 0.16; '"python"': 0.16; '12:04': 0.16; 'helpers': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'thread,': 0.16; 'travis': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'module': 0.19; 'seems': 0.21; 'install': 0.23; 'header:User-Agent:1': 0.23; 'certainly': 0.24; 'received:comcast.net': 0.24; 'specify': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'hosting': 0.29; 'am,': 0.29; "doesn't": 0.30; 'subject:what': 0.31; 'know.': 0.32; 'python.org': 0.32; 'another': 0.32; 'says': 0.33; 'subject:the': 0.34; 'something': 0.35; 'but': 0.35; 'version': 0.36; 'books,': 0.36; 'choosing': 0.36; 'done': 0.36; 'shows': 0.36; 'subject:?': 0.36; 'should': 0.36; 'operating': 0.37; 'to:addr:python-list': 0.38; 'that,': 0.38; 'highest': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'future': 0.60; 'most': 0.60; 'color': 0.61; 'new': 0.61; 'matter': 0.61; 'such': 0.63; 'choose': 0.64; 'between': 0.67; 'six': 0.68; 'default': 0.69; 'etc),': 0.84; 'notion': 0.91; 'examine': 0.93; 'online,': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: So, what's the real story on Python 2 vs Python 3? Date: Fri, 27 Dec 2013 07:13:44 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: c-50-133-228-126.hsd1.ma.comcast.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388146756 news.xs4all.nl 2977 [2001:888:2000:d::a6]:33747 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62794 On 12/27/13 12:04 AM, 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. Choosing between 2 and 3 should be done the same way any version decision is made: examine all of your dependencies (libraries, help online, skilled helpers available, hosting options, books, etc), then choose the highest version that supports them. Some people still find that the answer is 2, but many are finding that it is now 3. There's a lot of FUD about Python 3, don't listen to it. Certainly don't be thrown by the "default" of 2. It doesn't matter what most people do, or how your operating system is configured, what matters is whether you have what you need. Note that on sensible operating systems, "python" will continue to mean Python 2, and "python3" will mean Python 3. This will help perpetuate the notion that Python 3 is the outlier, but it's the only way to keep software working properly. Don't let it color your perceptions. If you are going to support both 2 and 3, in addition to the other good suggestions in this thread, the six module on PyPI can help with the differences. -- Ned Batchelder, http://nedbatchelder.com