(self, method_name)
system.methodHelp('add') => "Adds two integers together"

        Returns a string containing documentation for the specified method.
system.methodHelp('add') => "Adds two integers together"
system . methodHelp ( add ) = > Adds two integers together
def system_methodHelp(self, method_name):
        """system.methodHelp('add') => "Adds two integers together"

        Returns a string containing documentation for the specified method."""

        method = None
        if method_name in self.funcs:
            method = self.funcs[method_name]
        elif self.instance is not None:
            # Instance can implement _methodHelp to return help for a method
            if hasattr(self.instance, '_methodHelp'):
                return self.instance._methodHelp(method_name)
            # if the instance has a _dispatch method then we
            # don't have enough information to provide help
            elif not hasattr(self.instance, '_dispatch'):
                try:
                    method = resolve_dotted_attribute(
                                self.instance,
                                method_name,
                                self.allow_dotted_names
                                )
                except AttributeError:
                    pass

        # Note that we aren't checking that the method actually
        # be a callable object of some kind
        if method is None:
            return ""
        else:
            return pydoc.getdoc(method)
def system_methodHelp ( self , method_name ) : method = None if method_name in self . funcs : method = self . funcs [ method_name ] elif self . instance is not None : # Instance can implement _methodHelp to return help for a method if hasattr ( self . instance , '_methodHelp' ) : return self . instance . _methodHelp ( method_name ) # if the instance has a _dispatch method then we # don't have enough information to provide help elif not hasattr ( self . instance , '_dispatch' ) : try : method = resolve_dotted_attribute ( self . instance , method_name , self . allow_dotted_names ) except AttributeError : pass # Note that we aren't checking that the method actually # be a callable object of some kind if method is None : return "" else : return pydoc . getdoc ( method )