#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# if self . _is_hasheable ( key ) : #NEWLINE# #INDENT# return self . hasheable_instances [ key ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for ( i , j ) in self . not_hasheable_instances : #NEWLINE# #INDENT# if ( i == key ) : #NEWLINE# #INDENT# return j #NEWLINE# #UNINDENT# #UNINDENT# raise KeyError ( key )