On 03.07.2012 06:09, raymond.hettinger wrote:
http://hg.python.org/cpython/rev/d32f21d87363
changeset: 77921:d32f21d87363
branch: 2.7
parent: 77914:366df7ba1616
user: Raymond Hettinger <pyt...@rcn.com>
date: Mon Jul 02 21:08:45 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
@@ -733,7 +733,8 @@
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)
Will you please apply this also to 3.x?
Georg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com