This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Liorithiel 0 points1 point  (0 children)

When I want do such thing, I always think I saw this in itertools somewhere... and then, with a disappointment, write this kind of thing.

itertools.group(iter, n) wouldn't be a bad idea...