(self, function, *node_types)
Overrides the default walking function for each of the specified
        node_types with the given function
Overrides the default walking function for each of the specified
        node_types with the given function
Overrides the default walking function for each of the specified node_types with the given function
def set_function(self, function, *node_types):
        """Overrides the default walking function for each of the specified
        node_types with the given function
        """
        from warnings import warn
        warn("Instance-based walkers (<=0.6.0) walkers are deprecated. "
             "You should use new-style/class based walkers", stacklevel=2)
        for nt in node_types:
            self.functions[nt] = function
def set_function ( self , function , * node_types ) : from warnings import warn warn ( "Instance-based walkers (<=0.6.0) walkers are deprecated. " "You should use new-style/class based walkers" , stacklevel = 2 ) for nt in node_types : self . functions [ nt ] = function