[Python-checkins] cpython (merge 3.3 -> default): merge
raymond.hettinger
python-checkins at python.org
Mon May 6 04:54:35 CEST 2013
http://hg.python.org/cpython/rev/f95144242466
changeset: 83634:f95144242466
parent: 83631:186cf551dae5
parent: 83633:6383d0c8140d
user: Raymond Hettinger <python at rcn.com>
date: Sun May 05 19:54:04 2013 -0700
summary:
merge
files:
Doc/library/itertools.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -705,9 +705,9 @@
next(b, None)
return zip(a, b)
- def grouper(n, iterable, fillvalue=None):
+ def grouper(iterable, n, fillvalue=None):
"Collect data into fixed-length chunks or blocks"
- # grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
+ # grouper('ABCDEFG', 3, '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