Most popular Python packages now support Python 3
41–50 of 166 posts
Re: Most popular Python packages now support Python 3
#42I 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.
Until it does, either boto should be "fixed", or perhaps the MWS piece spun off.
Re: Most popular Python packages now support Python 3
#43I 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
Until it does, either boto should be "fixed", or perhaps the MWS piece spun off.
Re: Most popular Python packages now support Python 3
#44I 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.
Re: Most popular Python packages now support Python 3
#45Re: Most popular Python packages now support Python 3
#46I 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.
Re: Most popular Python packages now support Python 3
#47Earlier 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.
Re: Most popular Python packages now support Python 3
#48Earlier 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)
Re: Most popular Python packages now support Python 3
#49Re: Most popular Python packages now support Python 3
#50I'm planning to spend my free time in the next couple of months learning Python, should I only learn Python 3?