#NEWLINE# def __next__( self ) : #NEWLINE# #INDENT# first = type ( ( self . _ap . begin + self . _ap . step ) ) ( self . _ap . begin ) #NEWLINE# result = ( first + ( self . _ap . step * result . _index ) ) #NEWLINE# if ( result < self . _ap . end ) : #NEWLINE# #INDENT# self . _index += 1 #NEWLINE# return result #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise StopIteration