def __setitem__(self,name,value):
self.sam |= KEY_SET_VALUE<EOL>if not isinstance(value,Value):<EOL><INDENT>value = Value(value,name)<EOL><DEDENT>_winreg.SetValueEx(self.hkey,name,<NUM_LIT:0>,value.type,value.data)<EOL>
Item assignment sets key values.