def longzip(a, b):
    aiter = iter(a)
    biter = iter(b)
    try:
        for item1 in aiter:
            yield item1, biter.next()
    except StopIteration:
        for item1 in aiter:
            yield item1, None
    else:
        for item2 in biter:
            yield None, item2
Set mode.
dataset/ETHPy150Open mitsuhiko/solace/solace/utils/formatting.py/longzip--crossover with--dataset/ETHPy150Open FishPi/FishPi-POCV---Command---Control/fishpi/web/webhost.py/RPCHost.mode_cmd