Branch merge

This commit is contained in:
Éric Araujo 2012-07-03 01:13:40 -04:00
commit 9e06e37be0
1 changed files with 2 additions and 1 deletions

View File

@ -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)