def __getitem__(self,name):
self.sam |= KEY_QUERY_VALUE<EOL>try:<EOL><INDENT>data = _winreg.QueryValueEx(self.hkey,name)<EOL><DEDENT>except WindowsError:<EOL><INDENT>raise KeyError("<STR_LIT>" % (name,))<EOL><DEDENT>return Value(data[<NUM_LIT:0>],name,data[<NUM_LIT:1>])<EOL>
Item access retrieves key values.