def zip_exc(*iterables):
    """Like itertools.izip(), but throws a LengthMismatch exception if
    the iterables' lengths differ.
    """
    rest = [chain(i, _throw()) for i in iterables[1:]]
    first = chain(iterables[0], _check(rest))
    return izip(*[first] + rest)
Like itertools.izip(), but throws a LengthMismatch exception if
    the iterables' lengths differ.
    
recipes/Python/497006_zipexc_lazy_zip_that_ensures_that_all_iterables_/recipe-497006.py