parameters: (self, object, name, mod=None,
                     funcs={}, classes={}, methods={}, cl=None)
return_statement: return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
docstring: Produce HTML documentation for a function or method object.
docstring_summary: Produce HTML documentation for a function or method object.
docstring_tokens: Produce HTML documentation for a function or method object .
function: def docroutine(self, object, name, mod=None,
                     funcs={}, classes={}, methods={}, cl=None):
          """Produce HTML documentation for a function or method object."""
  
          anchor = (cl and cl.__name__ or '') + '-' + name
          note = ''
  
          title = '<a name="%s"><strong>%s</strong></a>' % (
              self.escape(anchor), self.escape(name))
  
          if callable(object):
              argspec = str(signature(object))
          else:
              argspec = '(...)'
  
          if isinstance(object, tuple):
              argspec = object[0] or argspec
              docstring = object[1] or ""
          else:
              docstring = pydoc.getdoc(object)
  
          decl = title + argspec + (note and self.grey(
                 '<font face="helvetica, arial">%s</font>' % note))
  
          doc = self.markup(
              docstring, self.preformat, funcs, classes, methods)
          doc = doc and '<dd><tt>%s</tt></dd>' % doc
          return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
function_tokens: def docroutine ( self , object , name , mod = None , funcs = { } , classes = { } , methods = { } , cl = None ) : anchor = ( cl and cl . __name__ or '' ) + '-' + name note = '' title = '<a name="%s"><strong>%s</strong></a>' % ( self . escape ( anchor ) , self . escape ( name ) ) if callable ( object ) : argspec = str ( signature ( object ) ) else : argspec = '(...)' if isinstance ( object , tuple ) : argspec = object [ 0 ] or argspec docstring = object [ 1 ] or "" else : docstring = pydoc . getdoc ( object ) decl = title + argspec + ( note and self . grey ( '<font face="helvetica, arial">%s</font>' % note ) ) doc = self . markup ( docstring , self . preformat , funcs , classes , methods ) doc = doc and '<dd><tt>%s</tt></dd>' % doc return '<dl><dt>%s</dt>%s</dl>\n' % ( decl , doc )