On Dec 29, 2007 2:18 AM, Tim Roberts <<a href="mailto:timr@probo.com">timr@probo.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Kugutsumen <<a href="mailto:kugutsumen@gmail.com">kugutsumen@gmail.com</a>> wrote:<br>><br>>I am relatively new the python language and I am afraid to be missing<br>>some clever construct or built-in way equivalent to my 'chunk'
<br>>generator below.<br><br>I have to say that I have found this to be a surprisingly common need as<br>well.  Would this be an appropriate construct to add to itertools?<br></blockquote><div><br>Something similar is already contained in the itertools recipes page.
<br></div></div><br>-- <br>Neil Cerutti<br>