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: 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: References: 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 Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Fri, Dec 27, 2013 at 4:07 PM, Roy Smith wrote: > In article , > 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. > > 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