Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82479
| References | <CAMA3c488xXJFVrO8Qt82A-oAQ3AAoavB956eYTNsd6TXO5g8hQ@mail.gmail.com> <CAFYqXL-PqQ2qzs3G2CZG5TKvOXr0DjnHsWoJ4T3jD24cMjrsyg@mail.gmail.com> <85bnn9hnzh.fsf@benfinney.id.au> |
|---|---|
| From | "Giampaolo Rodola'" <g.rodola@gmail.com> |
| Date | 2014-12-13 15:07 +0100 |
| Subject | Re: Python 2.x and 3.x use survey, 2014 edition |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16934.1418479662.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On Thu, Dec 11, 2014 at 10:32 PM, Ben Finney <ben+python@benfinney.id.au> wrote: > > "Giampaolo Rodola'" <g.rodola@gmail.com> writes: > > > I still think the only *real* obstacle remains the lack of important > > packages such as twisted, gevent and pika which haven't been ported > > yet. > > What disqualifies other obstacles from being “*real* obstacles”? How do > you determine that? > > > With those ones ported switching to Python 3 *right now* is not only > > possible and relatively easy, but also convenient. > > If my program relies on an obscure library ‘foo’, and that library is > not ported to Python 3, switching to Python 3 is not feasible, and > certainly not convenient — regardless of the status of “important > packages such as twisted, gevent, and pika”. > > So your assertion here is plainly false. > > What is it you're actually wanting to say? What I'm saying is that for a very long time a considerable number of libraries haven't been ported to python 3 and that lasted for years, say until Python 3.3, or until Django started supporting Python 3, which happened less than a year ago. Names such as Twisted, gevent, eventlet, python-daemon and paramiko means that literally hundreds of thousands of users cannot even think about migrating *right now*: they're just stuck. My perception is that for way too long Python 3 was kind of ignored by some of the most important library vendors and it (partially) still is, and that's what is affecting Python 3 adoption the most. Try to take a look at how many missing dependencies a project such as OpenStack still has: http://stackoverflow.com/questions/20075574/finding-which-packages-support-python-3-x-vs-2-7-x/22113627#22113627. OpenStack is probably a bad example 'cause it's *huge*, but when the missing deps have hundreds of thousands of user (see https://python3wos.appspot.com/) it is very easy to hit one of those and remain stuck even if your project is a lot smaller. I personally tried to migrate 2 medium-sized (> 10.000 LOC) projects at work for 2 different companies and what I ended up doing was modernizing the code so that both 2.7 and 3.3+ interpreters could execute it and tests didn't raise any "python-related error" (SyntaxError, TypeError, UnicodeError or whatever), but I punctually hit the wall of 1, 2 or 3 missing dependencies. So basically both of these 2 projects are "python 3 ready" but since the library ecosystem is not I just "wait" (it's been a year now). -- Giampaolo - http://grodola.blogspot.com
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Python 2.x and 3.x use survey, 2014 edition "Giampaolo Rodola'" <g.rodola@gmail.com> - 2014-12-13 15:07 +0100
Re: Python 2.x and 3.x use survey, 2014 edition Marko Rauhamaa <marko@pacujo.net> - 2014-12-13 17:07 +0200
Re: Python 2.x and 3.x use survey, 2014 edition Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-14 02:40 +1100
Re: Python 2.x and 3.x use survey, 2014 edition Marko Rauhamaa <marko@pacujo.net> - 2014-12-13 17:46 +0200
csiph-web