def system_listMethods(self):
        """system.listMethods() => ['add', 'subtract', 'multiple']

        Returns a list of the methods supported by the server."""

        methods = self.funcs.keys()
        if self.instance is not None:
            # Instance can implement _listMethod to return a list of
            # methods
            if hasattr(self.instance, '_listMethods'):
                methods = remove_duplicates(
                        methods + self.instance._listMethods()
                    )
            # if the instance has a _dispatch method then we
            # don't have enough information to provide a list
            # of methods
            elif not hasattr(self.instance, '_dispatch'):
                methods = remove_duplicates(
                        methods + list_public_methods(self.instance)
                    )
        methods.sort()
        return methods
def system_listMethods ( self ) : methods = self . funcs . keys ( ) if self . instance is not None : if hasattr ( self . instance , '_listMethods' ) : methods = remove_duplicates ( methods + self . instance . _listMethods ( ) ) elif not hasattr ( self . instance , '_dispatch' ) : methods = remove_duplicates ( methods + list_public_methods ( self . instance ) ) methods . sort ( ) return methods
system.listMethods() => ['add', 'subtract', 'multiple']

        Returns a list of the methods supported by the server.