(thing, forceload=0)
Write HTML documentation to a file in the current directory.
Write HTML documentation to a file in the current directory.
Write HTML documentation to a file in the current directory .
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))
        with open(name + '.html', 'w', encoding='utf-8') as file:
            file.write(page)
        print('wrote', name + '.html')
    except (ImportError, ErrorDuringImport) as value:
        print(value)
def writedoc ( thing , forceload = 0 ) : try : object , name = resolve ( thing , forceload ) page = html . page ( describe ( object ) , html . document ( object , name ) ) with open ( name + '.html' , 'w' , encoding = 'utf-8' ) as file : file . write ( page ) print ( 'wrote' , name + '.html' ) except ( ImportError , ErrorDuringImport ) as value : print ( value )