Live data from Hacker News

Most popular Python packages now support Python 3

py3readiness.org

41–50 of 166 posts

Re: Most popular Python packages now support Python 3

#42
post #13

I notice boto as one of the top items on the list as compatible. It has many many python3 crash bugs, especially on the MWS side. I have had an open PR for like a year to fix one of them, and it has been ignored. This makes me not very hopeful that being on the list means anything. (I am exclusively python3, but I have to wrestle with this a fair bit still)

boto is effectively a deprecated package. Use boto3, which has a far better architecture, is rigorously tested and maintained with lots of community activity.

Boto3 does not support MWS. My PRs are to the MWS part of boto, which IS still the active and only supported library to access MWS.

Until it does, either boto should be "fixed", or perhaps the MWS piece spun off.

Re: Most popular Python packages now support Python 3

#43

I notice boto as one of the top items on the list as compatible. It has many many python3 crash bugs, especially on the MWS side. I have had an open PR for like a year to fix one of them, and it has been ignored. This makes me not very hopeful that being on the list means anything. (I am exclusively python3, but I have to wrestle with this a fair bit still)

This was quite poorly communicated for pypi consumers of python libraries, you should switch to boto3 as stated in their readme for boto[1]. Be wary adventurer, while boto3 is super neat and a python3 treat, there unsteady footings beneath your feet (api differences). 1. https://github.com/boto/boto/blob/develop/README.rst

Boto3 does not support MWS. Pointing to a readme is totally not useful.

Until it does, either boto should be "fixed", or perhaps the MWS piece spun off.

Re: Most popular Python packages now support Python 3

#44
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.

I feel like it's the news that are tedious mostly. Py3 has been an exciting upgrade, but almost a non-event in the grand scheme of things. At least in my Python dev life.

Re: Most popular Python packages now support Python 3

#46

I would like to know if fellow HNers who regularly code in Python are using f-strings and type hints in your production code or otherwise. I often find myself inclined to use type hinting.

I don't think I could've survived engineering in Python without type hints. I came from a big 5 and engineering in C++ for several years and had to run a team of 5 not-so-great engineers in a python codebase. The hit that dynamic typing causes to readability, maintainability, bug risk, etc is _huge_, and type hinting goes some way towards fixing that.

Re: Most popular Python packages now support Python 3

#47
post #36
post #18

Earlier quoted context omitted.

Sets, if you mean a collection that contains no more than 1 of something, are easy. Use a map with struct{}{} values. If ordering is important, it's ~30 lines of simple code to encase a slice and a map in a struct and define your desired interface. Testing for a key's existence is easy as well. Accessing a map returns two variables--the 1st is the value itself. The 2nd variable is that "exists" variable you're asking…

Testing membership is the easy part of sets. What about subset, superset, union, intersection, difference? So many problems are trivial thanks to sets. I'd sooner give up regex support in python than the set type, that is how useful they are.

This repository was named to emphasise the comedy of its existence :) https://github.com/frou/poor-mans-generics/

Re: Most popular Python packages now support Python 3

#48
post #37

Earlier quoted context omitted.

New code at Facebook does use both. Instagram uses both extensively.

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.
Post reply on HN