Live data from Hacker News

Most popular Python packages now support Python 3

py3readiness.org

51–60 of 166 posts

Re: Most popular Python packages now support Python 3

#51
post #8

Clicking around, those that don't seem to be: 1. Obsolete. Either explicitly so (e.g. Google API) or abandoned, without even a minor/patch release (initools, 2010) or in some cases a code commit (e.g. pathtools, 2012) for five years or more. I suspect that they will never be Py3, the community will just move on to alternatives. 2. Working hard to bring support (e.g. ansible). 3. Part of the graphite ecosystem. If the…

Huh. I know if I have a server that only has python3, Ansible can configure that server with only the python3 interpreter available. So Ansible can use python3 on the box it's configuring, but not the host it's running from?

I believe they just haven't officially defined Ansible as Python 3 compliant because there are still open issues in Github related to Python 2.

I have been using Ansible exclusively with Python 3 for over a year and only stumbled into incompatible code once, a simple case of string VS bytes literals that got quickly fixed.

Re: Most popular Python packages now support Python 3

#52

Yup at this point there is no reason to not use Python 3 for new projects. What I'm finding actually is that some companies that have their codebase in Python 2 have actually started migrating to Golang rather than Python 3, because of the increased performance benefits. I'm kind of sad about this, but I think that Golang will eventually replace Python as the go-to back-end server language (maybe even data processing…

It is still not installed by default on Macs and that is a sufficient reason not to use it for me. It is far better to be able to tell users they can simply download and run your app without external dependencies. It is also important that downloads be small (i.e. I’m not embedding an entire Python 3 interpreter into my download if the preinstalled Python 2 works as well as it needs to).

Re: Most popular Python packages now support Python 3

#53

I'm planning to spend my free time in the next couple of months learning Python, should I only learn Python 3?

Yes. But there are very few differences anyway. The only thing is that there is not 100% backward compatibility, which is why we get articles like this. For computers that is a Big Deal, but for humans it is really easy.

Re: Most popular Python packages now support Python 3

#54

I'm planning to spend my free time in the next couple of months learning Python, should I only learn Python 3?

While many companies still use Python 2.X, they are sufficiently similar that I would recommend learning 3 and retrofitting your knowledge set if necessary later on.

Re: Most popular Python packages now support Python 3

#56

I'm planning to spend my free time in the next couple of months learning Python, should I only learn Python 3?

Pretty much. No reason to look into Python 2 when most of the useful libraries already support Python 3, which is the point of the OP.

And you'll save yourself a lot of 2-to-3 fatigue we've all been struggling with.

Tip: there's a Chrome/Firefox extension to redirect all Google results from Python 2 documentation to their corresponding entries in Python 3 docs.

Re: Most popular Python packages now support Python 3

#57

Earlier quoted context omitted.

Huh. I know if I have a server that only has python3, Ansible can configure that server with only the python3 interpreter available. So Ansible can use python3 on the box it's configuring, but not the host it's running from?

I believe they just haven't officially defined Ansible as Python 3 compliant because there are still open issues in Github related to Python 2. I have been using Ansible exclusively with Python 3 for over a year and only stumbled into incompatible code once, a simple case of string VS bytes literals that got quickly fixed.

so you're executing ansible with:

  python3 /usr/bin/ansible $cmd
if you're using plain `ansible` from the repos or pip, you're using python2.

/edit: there is actually a source for that, go figure: http://docs.ansible.com/ansible/latest/python_3_support.html

Re: Most popular Python packages now support Python 3

#58
post #37

Earlier quoted context omitted.

Does Facebook use Python 3 for Facebook frontend website? Or in PHP/Hack? (Facebook website frontend is well known to be in PHP/Hack)

Facebook's WWW is Hack. Instagram's WWW is Django on Python 3.6.

https://en.wikipedia.org/wiki/Hack_(programming_language)

> Hack allows programmers to use both dynamic typing and static typing. This kind of a type system is called gradual typing...

I wasn't aware of such a type system, and there're many languages which use both:

https://en.wikipedia.org/wiki/Gradual_typing

Re: Most popular Python packages now support Python 3

#59
post #16
post #8

Clicking around, those that don't seem to be: 1. Obsolete. Either explicitly so (e.g. Google API) or abandoned, without even a minor/patch release (initools, 2010) or in some cases a code commit (e.g. pathtools, 2012) for five years or more. I suspect that they will never be Py3, the community will just move on to alternatives. 2. Working hard to bring support (e.g. ansible). 3. Part of the graphite ecosystem. If the…

A brief look around the supervisor site indicates that they have public version control and issue tracking on their github page[0] and that they have a merged PR[1] to add python 3 testing (which appears to be passing). [0] https://github.com/Supervisor/supervisor [1] https://github.com/Supervisor/supervisor/pull/901

According to their README[1], supervisor does not yet work correctly on Python 3 and has a list of issues [2].

[1] https://github.com/Supervisor/supervisor/blob/master/README....

[2] https://github.com/Supervisor/supervisor/labels/python%203

Re: Most popular Python packages now support Python 3

#60
post #40

I have extreme Python 2-vs-3 fatigue and that's only from seeing the topic on news aggregators for years on end. I can't fathom how tedious the topic must be for those actually in the Python community for the whole time.

In last few years, Python 3 has got momentum. Frankly, for me it feels great to follow this progress.
Post reply on HN