#NEWLINE# def _increment( self , place ) : #NEWLINE# #INDENT# ( carry , self . _counters [ place ] ) = divmod ( ( self . _counters [ place ] + 1 ) , self . _lengths [ place ] ) #NEWLINE# if carry : #NEWLINE# #INDENT# if ( ( place + 1 ) < self . _places ) : #NEWLINE# #INDENT# return self . _increment ( ( carry + 1 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise StopIteration #NEWLINE# #UNINDENT# #UNINDENT# return carry