parameters: (thing, forceload=0)
docstring: Write HTML documentation to a file in the current directory.
docstring_summary: Write HTML documentation to a file in the current directory.
docstring_tokens: Write HTML documentation to a file in the current directory .
function: def writedoc(thing, forceload=0):
      """Write HTML documentation to a file in the current directory."""
      try:
          object, name = resolve(thing, forceload)
          page = html.page(describe(object), html.document(object, name))
          file = open(name + '.html', 'w')
          file.write(page)
          file.close()
          print 'wrote', name + '.html'
      except (ImportError, ErrorDuringImport), value:
          print value
function_tokens: def writedoc ( thing , forceload = 0 ) : try : object , name = resolve ( thing , forceload ) page = html . page ( describe ( object ) , html . document ( object , name ) ) file = open ( name + '.html' , 'w' ) file . write ( page ) file . close ( ) print 'wrote' , name + '.html' except ( ImportError , ErrorDuringImport ) , value : print value