Skip to content

Commit e16c882

Browse files
committed
Make it easier to search for the grouper() recipe.
1 parent 2aa8519 commit e16c882

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/itertools.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,8 @@ which incur interpreter overhead.
733733
return izip(a, b)
734734

735735
def grouper(n, iterable, fillvalue=None):
736-
"grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
736+
"Collect data into fixed-length chunks or blocks"
737+
# grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
737738
args = [iter(iterable)] * n
738739
return izip_longest(fillvalue=fillvalue, *args)
739740

0 commit comments

Comments
 (0)