pymel.util.pairIter

static util.pairIter(sequence)

Returns an iterator over every 2 items of sequence.

ie, [x for x in pairIter([1,2,3,4])] == [(1,2), (3,4)]

If sequence has an odd number of items, the last item will not be returned in a pair.

Previous topic

pymel.util.outer

Next topic

pymel.util.patchMath

Core

Core Modules

Other Modules

This Page