Live data from Hacker News

Top Python libraries of 2020 you should know about

tryolabs.com

51–55 of 55 posts

Re: Top Python libraries of 2020 you should know about

#51
post #25

Absolutely off-topic, but can somebody advise on the best resource to learn the most up-to-date Python for somebody who is mentally stuck on Python 2.7-3.2? I always referred to Python when I needed to quickly write some tool for personal use, but never professionally, even though I am a professional programmer. And recently while writing something like this I was struck with how bad my Python actually is in 2020, co…

> So, basically, what's the best way to catch up?

Install the latest python version and use it. Ignore the bits you don't need. The type hints for example are neat but entirely optional.

Re: Top Python libraries of 2020 you should know about

#52
post #35

Earlier quoted context omitted.

I tried conda on a couple of occasions, but it always took an absurd amount of time for dependency resolution (upwards of a minute on average hardware and smallish projects with a few heavyweight dependencies like numpy). Is that aspect better now?

It's still slow. The reason it's slow is because they use a complete SAT solver to do the resolution. So, it's slow, but it's also thorough. It gives some insight into why pip's dependency management is not thorough: they're clearly sacrificing completeness for performance.

Note that pip has recently gotten a proper version resolver. It's still plenty of fast, but it's also definitely possible to run into degenerate cases for which it will never finish.

Re: Top Python libraries of 2020 you should know about

#53

If Dear PyGUI uses immediate mode, does it perhaps have the makings of a game library? I looked briefly at pygame a while ago and was dissuaded when using hardware surfaces seemed to be black magic in the opinion of many users of the library, and using software rendering nets you a max of like 25fps if you do nothing but blit black across the entire screen. Does anyone know if pygame is still the state of the art for…

PyGame recently released a new version based on SDL2 instead of SDL. I don't know if it's actually faster but given that SDL2 focuses on accelerated rendering I'd imagine so. Worth checking out in any case.

Just in case it's still as slow as ever: there's perfectly fine SDL2 bindings for python, so if you use those at least the slowness will be your own fault.

Re: Top Python libraries of 2020 you should know about

#54
post #45
post #20

Earlier quoted context omitted.

Curious what bugs you have come across with poetry?

Race conditions in the installer. The parallel installer must be disabled. But generally I like poetry and I am also a contributor (--remove-untracked). Don't want to bash it to much.

I also like and use it and have been trying to compare it with pipenv(which we switched from). To be honest it has been nothing but very pleasant to use and I am surprised when people have issues(maybe we have those issues and I am not aware?).

I have not had any issues with installer race conditions, did I miss, was lucky or you had a special case it surfaced maybe?

Re: Top Python libraries of 2020 you should know about

#55
post #23
post #20

Earlier quoted context omitted.

Curious what bugs you have come across with poetry?

In the current version, 1.1.4, if your package has optional dependencies (AKA "extras"), the generated package metadata is incompatible with setuptools (specifically the packaging package, which can't parse the requirement specs generated by poetry), so I've had to stick with 1.0 for now. I've encountered a few issues like this since I started using poetry 0.12.

Thanks for sharing, indeed that is very bad. Do you know if this bug is already reported?
Post reply on HN