def longzip(a, b):
    """Like `izip` but yields `None` for missing items."""
    aiter = iter(a)
    biter = iter(b)
    try:
        for item1 in aiter:
            yield item1, biter.next()
    except __HOLE__:
        for item1 in aiter:
            yield item1, None
    else:
        for item2 in biter:
            yield None, item2
dataset/ETHPy150Open mitsuhiko/solace/solace/utils/formatting.py/longzip