def __setattr__(self,name,value):
if name == "<STR_LIT>":<EOL><INDENT>sam = self.__dict__.get("<STR_LIT>",<NUM_LIT:0>)<EOL>if sam|value != sam:<EOL><INDENT>del self.hkey<EOL><DEDENT>self.__dict__[name] = value<EOL><DEDENT>elif name == "<STR_LIT:path>":<EOL><INDENT>raise AttributeError("<STR_LIT>")<EOL><DEDENT>elif name in ("<STR_LIT:name>","<STR_LIT>","<STR_LIT>",):<EOL><INDENT>self.__dict__[name] = value<EOL><DEDENT>else:<EOL><INDENT>self.set_subkey(name,value)<EOL><DEDENT>
Attribute assignment creates a new subkey.