#NEWLINE# def cycle( self , * args ) : #NEWLINE# #INDENT# 'Cycles among the arguments with the current loop index.' #NEWLINE# if ( not args ) : #NEWLINE# #INDENT# raise TypeError ( 'no items for cycling given' ) #NEWLINE# #UNINDENT# return self [ ( self . index0 % len ( args ) ) ]