def __getattr__(self,name):
if name == "<STR_LIT>":<EOL><INDENT>return self._get_hkey()<EOL><DEDENT>elif name == "<STR_LIT:path>":<EOL><INDENT>if self.parent is None:<EOL><INDENT>return self.name<EOL><DEDENT>else:<EOL><INDENT>return self.parent.path + "<STR_LIT:\\>" + self.name<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return self.get_subkey(name)<EOL><DEDENT>
Attribute access returns a subkey.