#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# for x in key . dat : #NEWLINE# #INDENT# if ( x . k . GetValue ( ) == key ) : #NEWLINE# #INDENT# return x . v . GetValue ( ) #NEWLINE# #UNINDENT# #UNINDENT# raise KeyError ( ( '%s not found' % key ) )