Announcement

Collapse
No announcement yet.

A Look Back At Python 3.0 After 10 Years

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TheBlackCat
    replied
    Originally posted by anybody View Post

    The Deluge BitTorrent client is pretty popular and has not been ported to python 3.
    Whether applications support python 3 is less of an issue, it is mostly hidden from users. The question is whether python libraries (i.e. packages) are ported. It is hard to find a major one now that isn't either ported or in the process of being ported. There are really only three major projects that haven't had a compatible release yet, and two of those are ported in master while the last is basically only used internally by mozilla and is in the process of being ported. Further, several major ones have dropped Python 2 support, and many others will do so within the next two years.
    Last edited by TheBlackCat; 02-12-2018, 05:35 PM.

    Leave a comment:


  • grigi
    replied
    The reason aiohttp isn't part of standard library, is the same reason that requests isn't part of standard library.
    They don't want to be pinned down, as they are improving/changing at a much faster rate than python itself.

    Also, there is a reliable packaging system that makes it super easy to include extra dependencies in your project.

    Leave a comment:


  • brrrrttttt
    replied
    Originally posted by Vistaus View Post
    And still so many things haven't been ported yet from Python 2 to 3...
    We're now well over the peak and Python 2 is sliding down the hill at an increasing rate. I've not come across any packages I wanted that aren't Python 3 compat for a long, long time, but the opposite is increasingly true.
    Last edited by brrrrttttt; 02-12-2018, 07:25 PM.

    Leave a comment:


  • ssokolow
    replied
    Originally posted by Vistaus View Post
    And still so many things haven't been ported yet from Python 2 to 3...
    That reminds me. I have to evaluate whether it's feasible to port certain intentionally-GTK2 programs of mine from PyGTK to PyGI so I can use Python 3 for them or whether GTK+ 2.x's support for GObject Introspection is simply too immature.

    Leave a comment:


  • anybody
    replied
    Originally posted by schmidtbag View Post
    To my knowledge, there is almost nothing worth caring about that hasn't been ported. If a program or library is still on Python 2, it is likely outdated or niche.
    The Deluge BitTorrent client is pretty popular and has not been ported to python 3.

    Leave a comment:


  • schmidtbag
    replied
    Originally posted by jpg44 View Post
    Isn't there also Twisted framework for asynchronous HTTP? I like twisted due to how you can use it on many different event notification systems and how many modules can share the same event loop. Of course you have to install it, which shouldn't be that hard to do.
    I think you're right, though I personally haven't used Twisted much. It was way too overkill for my needs, and as a result, needlessly overcomplicated. But, it does seem to serve a lot of purposes that other libraries don't seem to do.
    My main interest with Python+HTTP is WebSocket. Twisted supports that too, but not in an elegant way. It's been a while since I've checked, but there was this very basic library that accomplished WebSocket with far less effort and was only a couple hundred KB.

    Originally posted by Vistaus View Post
    And still so many things haven't been ported yet from Python 2 to 3...
    To my knowledge, there is almost nothing worth caring about that hasn't been ported. If a program or library is still on Python 2, it is likely outdated or too niche.

    Leave a comment:


  • Vistaus
    replied
    And still so many things haven't been ported yet from Python 2 to 3...

    Leave a comment:


  • jpg44
    replied
    Originally posted by schmidtbag View Post
    What's wrong with using aiohttp? Also depending on what you're trying to do, you can always try the multiprocessing or thread libraries. Note the latter keeps your application single-threaded, but from what I recall, it makes memory management easier.
    Isn't there also Twisted framework for asynchronous HTTP? I like twisted due to how you can use it on many different event notification systems and how many modules can share the same event loop. Of course you have to install it, which shouldn't be that hard to do.

    Leave a comment:


  • schmidtbag
    replied
    Originally posted by uid313 View Post
    One of my gripes with Python 3 is that the built-in HTTP client is not asynchronous.
    To perform asynchronous HTTP requests you have to rely on a third-party library such as aiohttp.
    What's wrong with using aiohttp? Also depending on what you're trying to do, you can always try the multiprocessing or thread libraries. Note the latter keeps your application single-threaded, but from what I recall, it makes memory management easier.

    Leave a comment:


  • uid313
    replied
    One of my gripes with Python 3 is that the built-in HTTP client is not asynchronous.
    To perform asynchronous HTTP requests you have to rely on a third-party library such as aiohttp.

    Leave a comment:

Working...
X