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

index 994a25ae5d5c8e50676c7cd29e9c88c39227344c..da3e6900141836a60188d4364f7751ed7601d208 100644 (file)
@@ -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)