Hacker News new | ask | show | jobs
by jkoudys 841 days ago
Generators are great, and their comprehensions included are some of the best things about python. It's wild how many people jump straight to building a huge dataset (straight to numpy) when all they really need is a few iterators to lazy evaluate. I'd held out on properly learning python for a decade, but it turns out I actually love python I just don't love the weird subset of it most devs practice, that evaluates and allocates for EVERYTHING.