Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With judicious use of generators, and with itertools [0] when needed, they can be quite efficient for not much effort.

And these are flexible tools that you can take with you across projects.

[0] https://docs.python.org/3/library/itertools.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: