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


Groups > comp.lang.python > #82465

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <barry@python.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1418414291; bh=8Ulbb0BdaTYwHhjMEi7XjTnHbidVfUrWv86BifUtoyY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F05l1p3v0kd0gUKBzHmJz8issZmDVzn8sqjYAK/gcBejK4O9BNNzEm0R08gczIxSe 1hJ4T6sNVpyIfD6DxkoA+OZ7e27qky+COltG91oiTLVgcCti/jYg2eyzTge8+xskll ah8oJH9Bv+S6vfMytKVD7kHpzDBzlUk3zjQIqgjs=
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.04; 'cpython': 0.05; 'subject:Python': 0.06; '2to3': 0.09; 'bindings': 0.09; 'stack.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'language,': 0.12; '(it': 0.16; 'bindings.': 0.16; 'cc:name:python list': 0.16; 'former,': 0.16; 'from:addr:barry': 0.16; 'from:name:barry warsaw': 0.16; 'gobject': 0.16; 'nowadays': 0.16; 'otoh,': 0.16; 'petr': 0.16; 'ported': 0.16; 'received:192.168.11': 0.16; 'received:216.15': 0.16; 'received:216.15.33': 0.16; 'received:216.15.33.194': 0.16; 'received:mail.wooz.org': 0.16; 'received:wooz.org': 0.16; 'subject:Dev': 0.16; 'subject:edition': 0.16; 'terribly': 0.16; 'there...': 0.16; "ubuntu's": 0.16; 'underlying': 0.16; 'from:addr:python.org': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'subject:] ': 0.20; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'cheers,': 0.24; 'extension': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'wondering': 0.29; "doesn't": 0.30; 'dec': 0.30; '(which': 0.31; 'code': 0.31; 'easier': 0.31; 'anyone': 0.31; "we're": 0.32; 'linux': 0.33; 'worked': 0.33; 'ago': 0.33; 'but': 0.35; 'c++': 0.36; 'ubuntu': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'sometimes': 0.38; 'issue': 0.38; 'pm,': 0.38; '12,': 0.39; 'received:org': 0.40; 'most': 0.60; 'hope': 0.61; 'new': 0.61; 'times': 0.62; 'our': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'worth': 0.66; 'benefit': 0.68; 'importantly,': 0.68; 'population': 0.68; 'default': 0.69; '\xe2\x80\x93': 0.77; '2014,': 0.84; 'games.': 0.84; 'subject:survey': 0.84; 'upstream': 0.84; 'url:ticket': 0.84; 'url:trac': 0.84
Date Fri, 12 Dec 2014 14:58:03 -0500
From Barry Warsaw <barry@python.org>
To Petr Viktorin <encukou@gmail.com>
Subject Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition
In-Reply-To <CA+=+wqCcJSe0VaA3UU-_TL4_M6bqcdUq00=Z3_kCLVqXnShwTA@mail.gmail.com>
References <CAMA3c488xXJFVrO8Qt82A-oAQ3AAoavB956eYTNsd6TXO5g8hQ@mail.gmail.com> <CAFYqXL-PqQ2qzs3G2CZG5TKvOXr0DjnHsWoJ4T3jD24cMjrsyg@mail.gmail.com> <CACbEM1eM+SpZe9uf1i1un7tkrg8KayM41dOwwcydtfy2ux0kfw@mail.gmail.com> <CAGGBd_rw_w8KeTWRejTzxZ1dVc=_+8fumUMMc2FC5Bwc8_476Q@mail.gmail.com> <CACbEM1c2G46uznU+jzLe7gDgMPZcxBwyPM_4BE=UNvyv7x8ALg@mail.gmail.com> <CA+=+wqCcJSe0VaA3UU-_TL4_M6bqcdUq00=Z3_kCLVqXnShwTA@mail.gmail.com>
Organization The Organization of Unorganized Woozalists
X-Mailer Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc Python List <python-list@python.org>, python-dev <python-dev@python.org>
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.16925.1418414292.18130.python-list@python.org> (permalink)
Lines 40
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418414292 news.xs4all.nl 2914 [2001:888:2000:d::a6]:38226
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82465

Show key headers only | View raw


On Dec 12, 2014, at 08:07 PM, Petr Viktorin wrote:

>If anyone is wondering why their favorite Linux distribution is stuck with
>Python 2 – well, I can only speak for Fedora, but nowadays most of what's
>left are CPython bindings.  No pylint --py3k or 2to3 will help there...

It's true that some of these are tough.  I tried and failed a few times to
port Xapian to Python 3.  The issue was opened upstream 6 years ago and it's
still unresolved: http://trac.xapian.org/ticket/346

OTOH, I ported dbus-python to Python 3 and that worked out much better; we've
had solid Python 3 bindings for several years now, which allowed us to port
many important Debian/Ubuntu tools to Python 3 and more importantly, do all
our new work in Python 3.  With other big toolkits like GObject introspection
working on Python 3, there's a lot you can do.

IME, if the underlying model is string/bytes clean, then the C extension port
can sometimes be easier than pure-Python, thanks to cpp games.  D-Bus's model
is pretty clean, Xapian I found to be not so much (it doesn't help that Xapian
is C++ ;).

We're actually not terribly far from switching Debian and Ubuntu's default
to Python 3.  On Debian, the big blocker is the BTS code (which uses SOAP) and
on Ubuntu it's the launchpadlib stack.  I hope to find time after Jessie to
work on the former, and before 16.04 LTS to work on the latter.

Not that I disagree that there's a long tail of code that would still benefit
a significant population if it got ported to Python 3.  By far Python 3 is a
better language, with a better stdlib, so the work is worth it.

Cheers,
-Barry

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition Barry Warsaw <barry@python.org> - 2014-12-12 14:58 -0500

csiph-web