(*iterables, chunksize)
Iterates over zip()ed iterables in chunks.
Iterates over zip()ed iterables in chunks.
Iterates over zip () ed iterables in chunks .
def _get_chunks(*iterables, chunksize):
    """ Iterates over zip()ed iterables in chunks. """
    it = zip(*iterables)
    while True:
        chunk = tuple(itertools.islice(it, chunksize))
        if not chunk:
            return
        yield chunk
def _get_chunks ( * iterables , chunksize ) : it = zip ( * iterables ) while True : chunk = tuple ( itertools . islice ( it , chunksize ) ) if not chunk : return yield chunk