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

Grouper is a recipe, it's not part of itertools. It probably should be!


All of the recipes in the itertools documentation should pretty much be considered folklore imho. If you always use the 'zip((iterator,)n)' approach, people will recognize it and know immediately what you mean.




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

Search: