#NEWLINE# def __setattr__( self , key , value ) : #NEWLINE# #INDENT# if ( getattr ( self , '__frozen' , False ) and ( not ( ( key in type ( self ) . __dict__ ) or ( key == '_cache' ) ) ) ) : #NEWLINE# #INDENT# raise AttributeError ( "You cannot add any new attribute '{key}'" . format ( key = key ) ) #NEWLINE# #UNINDENT# object . __setattr__ ( key , key , value )