On Dec 29, 2007 2:18 AM, Tim Roberts <[EMAIL PROTECTED]> wrote: > Kugutsumen <[EMAIL PROTECTED]> wrote: > > > >I am relatively new the python language and I am afraid to be missing > >some clever construct or built-in way equivalent to my 'chunk' > >generator below. > > I have to say that I have found this to be a surprisingly common need as > well. Would this be an appropriate construct to add to itertools? >
Something similar is already contained in the itertools recipes page. -- Neil Cerutti
-- http://mail.python.org/mailman/listinfo/python-list