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: 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: References: 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 To: Travis McGee Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 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 On Thu, Dec 26, 2013 at 9:04 PM, Travis McGee 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