(self, s)
Add a value `s` to the list of values.
Add a value `s` to the list of values.
Add a value s to the list of values .
def add_value(self, s):
        """ Add a value `s` to the list of values.
        """
        if not isinstance(s, str):
            raise TypeError("values of DiscreteVariables must be strings")
        if s in self._value_index:
            return
        self._value_index[s] = len(self.values)
        self._values += (s, )
def add_value ( self , s ) : if not isinstance ( s , str ) : raise TypeError ( "values of DiscreteVariables must be strings" ) if s in self . _value_index : return self . _value_index [ s ] = len ( self . values ) self . _values += ( s , )