Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()
thebestaquaman@lemmy.world 2 days agoThe next best time is now
If my Easter break gets boring I might just start cleaning up that Python library… It’s the prime example of something that developed from a POC to a fully functional code base, was left largely unused for about a year, and just the past weeks has suddenly seen a lot of use again. Luckily we’re strict about good docstrings, but type hints would have been nice too.
sugar_in_your_tea@sh.itjust.works 2 days ago
Woo, do it! And add some tests while you’re at it in case those don’t exist.
I found a few bugs just going through and cleaning up missing code coverage. Maybe you’ll find the same!