From: Raymond Hettinger Date: Sun, 8 Jul 2012 23:04:03 +0000 (-0700) Subject: Make it easier to search for the grouper() recipe. X-Git-Tag: v3.3.0b2~267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ae947338911a73070254f1999f42d4bf3713ec4;p=python Make it easier to search for the grouper() recipe. --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 994a25ae5d..da3e690014 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -705,7 +705,8 @@ which incur interpreter overhead. return zip(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 zip_longest(*args, fillvalue=fillvalue)