#NEWLINE# def __setitem__( self , key , value ) : #NEWLINE# #INDENT# if ( key not in self ) : #NEWLINE# #INDENT# raise KeyError ( ( '%r not permitted in this %s' % ( key , self . __class__ . __name__ ) ) ) #NEWLINE# #UNINDENT# self . _frames [ ( - 1 ) ] [ key ] = self