#NEWLINE# def __setattr__( self , key , value ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# object . __getattr__ ( self , key ) #NEWLINE# object . __setattr__ ( self , key , value ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# key = self . _get_key ( key ) #NEWLINE# if ( key == '@context' ) : #NEWLINE# #INDENT# value = self . get_context ( key ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == '@id' ) : #NEWLINE# #INDENT# value = self . get_id ( value ) #NEWLINE# #UNINDENT# #UNINDENT# if ( key [ 0 ] == '_' ) : #NEWLINE# #INDENT# object . __setattr__ ( self , key , value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value is None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# super ( Leaf , self ) . __delitem__ ( key ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# super ( Leaf , self ) . __setitem__ ( key , value )