pymel.util.arguments.pairIter

static arguments.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.arguments.mergeCascadingDicts

Next topic

pymel.util.arguments.postorder

Core

Core Modules

Other Modules

This Page