#NEWLINE# def __setattr__( self , key , value ) : #NEWLINE# #INDENT# if ( ( key in self . __class__ . attributes ) or ( key in self . __dict__ ) ) : #NEWLINE# #INDENT# self . __dict__ [ key ] = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise AttributeError ( key )