#NEWLINE# def insert( self , index , key , val ) : #NEWLINE# #INDENT# '\n        Insert val at index if key not in odict\n        ' #NEWLINE# if ( key in self ) : #NEWLINE# #INDENT# raise KeyError ( ( 'Key %r already exists.' % key ) ) #NEWLINE# #UNINDENT# dict . __setitem__ ( self , key , val ) #NEWLINE# self . _keys . insert ( index , key )