[Python-ideas] itertools.chunks(iterable, size, fill=None)

Joao S. O. Bueno jsbueno at python.org.br
Tue Jun 26 14:42:01 CEST 2012

On 26 June 2012 07:34, Tal Einat <taleinat at gmail.com> wrote:
> On Tue, Jun 26, 2012 at 11:03 AM, anatoly techtonik <techtonik at gmail.com> wrote:

>>    itertools.chunks(iterable, size, fill=None)
What about

tertools.chunks(iterable, size=None, separator=None, fill=None)

Requiring at leas one of size or separator to be set?

This would also work for "for x in text.split('\n')"  case.


More information about the Python-ideas mailing list