(n, iterable, fillvalue=None)
return it.izip_longest(fillvalue=fillvalue, *args)
grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx
grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx
grouper ( 3 ABCDEFG x ) -- > ABC DEF Gxx
def grouper(n, iterable, fillvalue=None):
    '''grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx'''
    args = [iter(iterable)] * n
    return it.izip_longest(fillvalue=fillvalue, *args)
def grouper ( n , iterable , fillvalue = None ) : args = [ iter ( iterable ) ] * n return it . izip_longest ( fillvalue = fillvalue , * args )