<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 30, 2012, at 10:44 PM, Stefan Behnel wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><blockquote type="cite"><br class="Apple-interchange-newline">Another addition could be a new subsection on grouping (chunking) that<br></blockquote><blockquote type="cite">would discuss post-processing of grouper (as discussed above), as well as<br></blockquote><blockquote type="cite">other recipes, including ones specific to strings and sequences. It would<br></blockquote><blockquote type="cite">essentially be a short how-to. Call it 9.1.3 "Grouping, Blocking, or<br></blockquote><blockquote type="cite">Chunking Sequences and Iterables". The synonyms will help external<br></blockquote><blockquote type="cite">searching. A toc would let people who have found this doc know to look for<br></blockquote><blockquote type="cite">this at the bottom.<br></blockquote><br>If it really is such an important use case for so many people, I agree that<br>it's worth special casing it in the docs. It's not a trivial algorithmic<br>step from a sequential iterable to a grouped iterable.<br></span></blockquote></div><br><div>I'm not too keen on adding a section like this to the itertools docs.</div><div><br></div><div>Instead, I would be open adding "further reading" section with&nbsp;external links&nbsp;</div><div>to interesting iterator writeups in blogs, cookbooks,&nbsp;stack overflow answers, wikis, etc.</div><div><br></div><div>If one of you wants to craft an elegant blog post on "Grouping, Blocking, or</div><div>Chunking Sequences and Iterables", I would be happy to link to it.</div><div><br></div><div><br></div><div>Raymond</div><div><br></div><div><br></div><div><br></div><div><br></div></body></html>