#NEWLINE# def __call__( self , i , credit_old , iters , credit_new ) : #NEWLINE# #INDENT# if ( i not in self . credithist ) : #NEWLINE# #INDENT# self . credithist [ i ] = [ credit_old ] #NEWLINE# #UNINDENT# self . credithist [ i ] . append ( credit_new ) #NEWLINE# return min ( self . credithist [ credit_old ] [ ( - self . N ) : ] )