From e16c8825845ffafd8d1a2aebd9f0103127a9be2d Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 2 Jul 2012 21:08:45 -0700 Subject: [PATCH] Make it easier to search for the grouper() recipe. --- Doc/library/itertools.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index a553d09964e..36aaa7bbbb0 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)