summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-05-06 02:54:04 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-05-06 02:54:04 (GMT)
commit77371a5eea6b4a628a07b239333cbe3c3f4b13f6 (patch)
treed0c21e626a7134705ec50c77a6e56af06ee939b5
parent7a3dae056d8022a8308b5aa8ac026b0436d66eb5 (diff)
parent44571daf0e3a1df376dc97551643281bdf2dbcb8 (diff)
downloadcpython-77371a5eea6b4a628a07b239333cbe3c3f4b13f6.zip
cpython-77371a5eea6b4a628a07b239333cbe3c3f4b13f6.tar.gz
cpython-77371a5eea6b4a628a07b239333cbe3c3f4b13f6.tar.bz2
merge
-rw-r--r--Doc/library/itertools.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 1eb554a..7099fa0 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -705,9 +705,9 @@ which incur interpreter overhead.
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)