(cls, function, *node_types)
Associate in cls the given function to the given node_types.
Associate in cls the given function to the given node_types.
Associate in cls the given function to the given node_types .
def set_handler(cls, function, *node_types):
        """Associate in cls the given function to the given node_types."""
        for nt in node_types:
            setattr(cls, nt_to_fun(nt), function)
def set_handler ( cls , function , * node_types ) : for nt in node_types : setattr ( cls , nt_to_fun ( nt ) , function )