#NEWLINE# def create_unique_name( prefix , names , separator = '_' ) : #NEWLINE# #INDENT# " Creates a name starting with 'prefix' that is not in 'names'. " #NEWLINE# i = 1 #NEWLINE# name = prefix #NEWLINE# while ( name in names ) : #NEWLINE# #INDENT# name = ( ( prefix + separator ) + str ( i ) ) #NEWLINE# i += 1 #NEWLINE# #UNINDENT# return i