Path: csiph.com!usenet.pasdenom.info!news.franciliens.net!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.04; 'yet.': 0.04; 'cpython': 0.05; 'interpreter': 0.05; 'subject:Python': 0.06; '(using': 0.07; 'pypi': 0.07; 'python3': 0.07; 'see:': 0.07; 'suppose': 0.07; '2to3': 0.09; 'bindings': 0.09; 'dan': 0.09; 'migration': 0.09; 'sure,': 0.09; 'to:name :python-dev': 0.09; 'yeah,': 0.09; 'sfxlen:2': 0.11; 'python': 0.11; 'language.': 0.14; "wouldn't": 0.14; ':-/': 0.16; 'bindings.': 0.16; 'interpreter,': 0.16; 'merely': 0.16; 'non- python': 0.16; 'nowadays': 0.16; 'ported': 0.16; 'porting': 0.16; 'pypi.': 0.16; 'route,': 0.16; 'subject:Dev': 0.16; 'subject:edition': 0.16; 'there...': 0.16; 'to:name:python list': 0.16; 'url:appspot': 0.16; 'url:svn': 0.16; 'ignore': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'thu,': 0.19; 'subject:] ': 0.20; 'written': 0.21; 'seems': 0.21; 'saying': 0.22; '2.x': 0.24; "aren't": 0.24; 'url:moin': 0.24; "haven't": 0.24; "i've": 0.25; 'purposes': 0.26; 'to:addr:python-dev': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'point': 0.28; 'wondering': 0.29; 'am,': 0.29; "doesn't": 0.30; 'change,': 0.30; 'dec': 0.30; 'important.': 0.30; 'moved': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'work.': 0.31; 'code': 0.31; 'url:wiki': 0.31; 'usually': 0.31; '3.x': 0.31; 'bad.': 0.31; 'gather': 0.31; 'libraries': 0.31; 'perl': 0.31; 'anyone': 0.31; 'compatible': 0.32; 'languages': 0.32; 'option': 0.32; 'run': 0.32; 'linux': 0.33; 'url:python': 0.33; 'running': 0.33; 'fri,': 0.33; 'updated': 0.34; 'core': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'dies': 0.36; 'url:org': 0.36; 'so,': 0.37; 'too': 0.37; 'two': 0.37; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'anything': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'most': 0.60; 'high': 0.63; 'valuable': 0.63; 'more': 0.64; 'world': 0.66; 'believe': 0.68; 'fulfill': 0.68; 'day': 0.76; '\xe2\x80\x93': 0.77; 'alone.': 0.84; 'subject:survey': 0.84; 'hate': 0.91; 'migrating': 0.91; 'incredibly': 0.96; 'wholesale': 0.96 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:content-transfer-encoding; bh=IEUb0fSBIyoig1zjlloZhx32e2urbedgtMwA8n0A3Do=; b=p2h3QKuQJZ0jZjP76Hygt47z4OY4BkbonMWSx4x70DY6jjdgsPyzPHn39BenkYEdqP h0XmXWgE78qIrqGwR3MTdgpeUu99jdL559pgHfkFr5+u78PaEMNuAcB4syHx2hDlPhse j3TvWvO91IUFD3kvEYf5rmBtmdl4xM3l8vHHPFzTGIe8GrIwUWlMrqHqXR9xsAT8XT8l kKeNReQzKv4dzxW0Tz8IdSxiWJS4xRAtcJIPFEtJq8xhQy3aJQFXAjLwTqG8aEq8XFRm OJqsFXhgW5D0mAOhrnd7ciNxSAe4Ixt2dn0f5rUmC4gdHcj2ztm4CPh0MdJrR/V9euZA aGBA== X-Received: by 10.70.89.105 with SMTP id bn9mr28788469pdb.155.1418411283090; Fri, 12 Dec 2014 11:08:03 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Petr Viktorin Date: Fri, 12 Dec 2014 20:07:42 +0100 Subject: Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition To: Python List , python-dev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 72 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418411656 news.xs4all.nl 2925 [2001:888:2000:d::a6]:52077 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82462 Also keep in mind that not all Python libraries are on PyPI. For non-Python projects with Python bindings (think video players, OpenCV, systemd, Samba), distribution via PyPI doesn't make much sense. And since the Python bindings are usually second-class citizens, the porting doesn't have a high priority. If anyone is wondering why their favorite Linux distribution is stuck with Python 2 =E2=80=93 well, I can only speak for Fedora, but nowadays mos= t of what's left are CPython bindings. No pylint --py3k or 2to3 will help there... On Fri, Dec 12, 2014 at 7:24 PM, Mark Roberts wrote: > So, I'm more than aware of how to write Python 2/3 compatible code. I've > ported 10-20 libraries to Python 3 and write Python 2/3 compatible code a= t > work. I'm also aware of how much writing 2/3 compatible code makes me hat= e > Python as a language. It'll be a happy day when one of the two languages > dies so that I never have to write code like that again. However, my poin= t > was that just because the core libraries by usage are *starting* to roll = out > Python 3 support doesn't mean that things are "easy" or "convenient" yet. > There are too many libraries in the long tail which fulfill semi-common > purposes and haven't been moved over yet. Yeah, sure, they haven't been > updated in years... but neither has the language they're built on. > > I suppose what I'm saying is that the long tail of libraries is far more > valuable than it seems the Python3 zealots are giving it credit for. Plea= se > don't claim it's "easy" to move over just because merely most of the top = 20 > libraries have been moved over. :-/ > > -Mark > > On Thu, Dec 11, 2014 at 12:14 PM, Dan Stromberg wro= te: >> >> On Thu, Dec 11, 2014 at 11:35 AM, Mark Roberts wrote: >> > I disagree. I know there's a huge focus on The Big Libraries (and >> > wholesale >> > migration is all but impossible without them), but the long tail of >> > libraries is still incredibly important. It's like saying that migrati= ng >> > the >> > top 10 Perl libraries to Perl 6 would allow people to completely ignor= e >> > all >> > of CPAN. It just doesn't make sense. >> >> Things in the Python 2.x vs 3.x world aren't that bad. >> >> See: >> https://python3wos.appspot.com/ and >> https://wiki.python.org/moin/PortingPythonToPy3k >> http://stromberg.dnsalias.org/~strombrg/Intro-to-Python/ (writing code >> to run on 2.x and 3.x) >> >> I believe just about everything I've written over the last few years >> either ran on 2.x and 3.x unmodified, or ran on 3.x alone. If you go >> the former route, you don't need to wait for your libraries to be >> updated. >> >> I usually run pylint twice for my projects (after each change, prior >> to checkin), once with a 2.x interpreter, and once with a 3.x >> interpreter (using >> http://stromberg.dnsalias.org/svn/this-pylint/trunk/this-pylint) , but >> I gather pylint has the option of running on a 2.x interpreter and >> warning about anything that wouldn't work on 3.x.