From 9ae947338911a73070254f1999f42d4bf3713ec4 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 8 Jul 2012 16:04:03 -0700 Subject: 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 994a25a..da3e690 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) -- cgit v0.12