parameters: (self, *args)
return_statement: return args[self.index0 % len(args)]
docstring: Cycles among the arguments with the current loop index.
docstring_summary: Cycles among the arguments with the current loop index.
docstring_tokens: Cycles among the arguments with the current loop index .
function: def cycle(self, *args):
          """Cycles among the arguments with the current loop index."""
          if not args:
              raise TypeError('no items for cycling given')
          return args[self.index0 % len(args)]
function_tokens: def cycle ( self , * args ) : if not args : raise TypeError ( 'no items for cycling given' ) return args [ self . index0 % len ( args ) ]