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