(cls, variable, value=Unknown)
return self
Construct a new instance of Value with the given descriptor and value.
        If the argument `value` can be converted to float, it is stored as
        `float` and the attribute `value` is set to `None`. Otherwise, the
        inherited float is set to `Unknown` and the value is held by the
        attribute `value`.

        :param variable: descriptor
        :type variable: Orange.data.Variable
        :param value: value
Construct a new instance of Value with the given descriptor and value.
        If the argument `value` can be converted to float, it is stored as
        `float` and the attribute `value` is set to `None`. Otherwise, the
        inherited float is set to `Unknown` and the value is held by the
        attribute `value`.
Construct a new instance of Value with the given descriptor and value . If the argument value can be converted to float it is stored as float and the attribute value is set to None . Otherwise the inherited float is set to Unknown and the value is held by the attribute value .
def __new__(cls, variable, value=Unknown):
        """
        Construct a new instance of Value with the given descriptor and value.
        If the argument `value` can be converted to float, it is stored as
        `float` and the attribute `value` is set to `None`. Otherwise, the
        inherited float is set to `Unknown` and the value is held by the
        attribute `value`.

        :param variable: descriptor
        :type variable: Orange.data.Variable
        :param value: value
        """
        if variable.is_primitive():
            self = super().__new__(cls, value)
            self.variable = variable
            self._value = None
        else:
            isunknown = value == variable.Unknown
            self = super().__new__(
                cls, np.nan if isunknown else np.finfo(float).min)
            self.variable = variable
            self._value = value
        return self
def __new__ ( cls , variable , value = Unknown ) : if variable . is_primitive ( ) : self = super ( ) . __new__ ( cls , value ) self . variable = variable self . _value = None else : isunknown = value == variable . Unknown self = super ( ) . __new__ ( cls , np . nan if isunknown else np . finfo ( float ) . min ) self . variable = variable self . _value = value return self