[Python-checkins] cpython: Make it easier to search for the grouper() recipe.
raymond.hettinger
python-checkins at python.org
Mon Jul 9 01:04:10 CEST 2012
http://hg.python.org/cpython/rev/a809c6ffa332
changeset: 78016:a809c6ffa332
user: Raymond Hettinger <python at rcn.com>
date: Sun Jul 08 16:04:03 2012 -0700
summary:
Make it easier to search for the grouper() recipe.
files:
Doc/library/itertools.rst | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -705,7 +705,8 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list