def set_value(self, value, f=None): """ The the value. You optionally can send f, and not write (this is for some speed considerations) but you better be sure f is correct since an error will not be caught! """ Hypothesis.set_value(self,value) if f is not None: self.fvalue = f elif value is None: self.fvalue = None else: self.fvalue = self.value2function(value)
def set_value(self, value, f=None): """ Sets the value for the hypothesis. Another option: send f if speed is necessary """ Hypothesis.set_value(self, value) if f is not None: self.fvalue = f elif value is None: self.fvalue = None else: self.fvalue = self.compile_function() # now that the value is set