parameters: (self, object, name=None, *args)
return_statement: return self.docother(*args)
docstring: Generate documentation for an object.
docstring_summary: Generate documentation for an object.
docstring_tokens: Generate documentation for an object .
function: def document(self, object, name=None, *args):
          """Generate documentation for an object."""
          args = (object, name) + args
          # 'try' clause is to attempt to handle the possibility that inspect
          # identifies something in a way that pydoc itself has issues handling;
          # think 'super' and how it is a descriptor (which raises the exception
          # by lacking a __name__ attribute) and an instance.
          if inspect.isgetsetdescriptor(object): return self.docdata(*args)
          if inspect.ismemberdescriptor(object): return self.docdata(*args)
          try:
              if inspect.ismodule(object): return self.docmodule(*args)
              if inspect.isclass(object): return self.docclass(*args)
              if inspect.isroutine(object): return self.docroutine(*args)
          except AttributeError:
              pass
          if isinstance(object, property): return self.docproperty(*args)
          return self.docother(*args)
function_tokens: def document ( self , object , name = None , * args ) : args = ( object , name ) + args # 'try' clause is to attempt to handle the possibility that inspect # identifies something in a way that pydoc itself has issues handling; # think 'super' and how it is a descriptor (which raises the exception # by lacking a __name__ attribute) and an instance. if inspect . isgetsetdescriptor ( object ) : return self . docdata ( * args ) if inspect . ismemberdescriptor ( object ) : return self . docdata ( * args ) try : if inspect . ismodule ( object ) : return self . docmodule ( * args ) if inspect . isclass ( object ) : return self . docclass ( * args ) if inspect . isroutine ( object ) : return self . docroutine ( * args ) except AttributeError : pass if isinstance ( object , property ) : return self . docproperty ( * args ) return self . docother ( * args )