#NEWLINE# def add( self , key , value , location ) : #NEWLINE# #INDENT# ' Insert by key location. ' #NEWLINE# i = self . index_for_location ( location ) #NEWLINE# if ( i is not None ) : #NEWLINE# #INDENT# self . insert ( i , key , value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __setitem__ ( key , value )