From: Raymond Hettinger <python@rcn.com> Date: Tue, 3 Jul 2012 04:08:45 +0000 (-0700) Subject: Make it easier to search for the grouper() recipe. X-Git-Tag: v2.7.4rc1~721^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e16c8825845ffafd8d1a2aebd9f0103127a9be2d;p=python Make it easier to search for the grouper() recipe. --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index a553d09964..36aaa7bbbb 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -733,7 +733,8 @@ which incur interpreter overhead. return izip(a, b) def grouper(n, iterable, fillvalue=None): - "grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx" + "Collect data into fixed-length chunks or blocks" + # grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx" args = [iter(iterable)] * n return izip_longest(fillvalue=fillvalue, *args)