def pairIter(sequence):
    theIter = iter(sequence)
    return itertools.izip(theIter,theIter)
Returns an iterator over every 2 items of sequence.
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arguments.py/pairIter