diff options
author | Raymond Hettinger <python@rcn.com> | 2012-07-03 04:08:45 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2012-07-03 04:08:45 (GMT) |
commit | e16c8825845ffafd8d1a2aebd9f0103127a9be2d (patch) | |
tree | 2c350c7e40b49f6bac05c079b6b1f6e60c469bfc /Doc | |
parent | 2aa8519f07bff9e7a04e62e2e4d11c87d18bb846 (diff) | |
download | cpython-e16c8825845ffafd8d1a2aebd9f0103127a9be2d.zip cpython-e16c8825845ffafd8d1a2aebd9f0103127a9be2d.tar.gz cpython-e16c8825845ffafd8d1a2aebd9f0103127a9be2d.tar.bz2 |
Make it easier to search for the grouper() recipe.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/itertools.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index a553d09..36aaa7b 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) |