[Python-ideas] Batching/grouping function for itertools

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Dec 8 19:24:28 CET 2013


On 08/12/2013 04:44, Amber Yust wrote:
> After seeing yet another person asking how to do this on #python (and
> having needed to do it in the past myself), I'm wondering why itertools
> doesn't have a function to break an iterator up into N-sized chunks.
>

As discussed umpteen times previously, there is no way that we can agree 
on "a function" that can meet all of the variations that have been 
proposed on this theme.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence



More information about the Python-ideas mailing list