(self, function=None, name=None)
return function
Registers a function to respond to XML-RPC requests.

        The optional name argument can be used to set a Unicode name
        for the function.
Registers a function to respond to XML-RPC requests.
Registers a function to respond to XML - RPC requests .
def register_function(self, function=None, name=None):
        """Registers a function to respond to XML-RPC requests.

        The optional name argument can be used to set a Unicode name
        for the function.
        """
        # decorator factory
        if function is None:
            return partial(self.register_function, name=name)

        if name is None:
            name = function.__name__
        self.funcs[name] = function

        return function
def register_function ( self , function = None , name = None ) : # decorator factory if function is None : return partial ( self . register_function , name = name ) if name is None : name = function . __name__ self . funcs [ name ] = function return function