(self, key, value)
__setattr__ is overloaded to recompute the lookup table when the
        patterns, the original attribute or the flags change.
__setattr__ is overloaded to recompute the lookup table when the
        patterns, the original attribute or the flags change.
__setattr__ is overloaded to recompute the lookup table when the patterns the original attribute or the flags change .
def __setattr__(self, key, value):
        """__setattr__ is overloaded to recompute the lookup table when the
        patterns, the original attribute or the flags change."""
        super().__setattr__(key, value)
        if hasattr(self, "patterns") and \
                key in ("case_sensitive", "match_beginning", "patterns",
                        "variable", "map_values"):
            self.lookup_table = map_by_substring(
                self.variable.values, self.patterns,
                self.case_sensitive, self.match_beginning, self.map_values)
def __setattr__ ( self , key , value ) : super ( ) . __setattr__ ( key , value ) if hasattr ( self , "patterns" ) and key in ( "case_sensitive" , "match_beginning" , "patterns" , "variable" , "map_values" ) : self . lookup_table = map_by_substring ( self . variable . values , self . patterns , self . case_sensitive , self . match_beginning , self . map_values )