]> granicus.if.org Git - python/commitdiff
Make it easier to search for the grouper() recipe.
authorRaymond Hettinger <python@rcn.com>
Tue, 3 Jul 2012 04:08:45 +0000 (21:08 -0700)
committerRaymond Hettinger <python@rcn.com>
Tue, 3 Jul 2012 04:08:45 +0000 (21:08 -0700)
Doc/library/itertools.rst

index a553d09964e345215f43048192fab1e646b33425..36aaa7bbbb048a3fc0186f8cd5f5e56d518b4d85 100644 (file)
@@ -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)