#NEWLINE# def bind_generator_next( self , variable_name , generator_name ) : #NEWLINE# #INDENT# ' Binds the next value for generator_name to variable_name and return value used ' #NEWLINE# str_gen_name = str ( generator_name ) #NEWLINE# str_name = str ( variable_name ) #NEWLINE# val = next ( self . generators [ str_gen_name ] ) #NEWLINE# prev = self . variables . get ( str_name ) #NEWLINE# if ( self != val ) : #NEWLINE# #INDENT# self . variables [ str_name ] = val #NEWLINE# self . mod_count = ( self . mod_count + 1 ) #NEWLINE# #UNINDENT# return val