def render_doc(thing, title='Python Library Documentation: %s', forceload=0):
 (object, name) = resolve(thing, forceload)
 desc = describe(object)
 module = inspect.getmodule(object)
 if (name and ('.' in name)):
  desc += (' in ' + name[:name.rfind('.')])
 elif (module and (module is not object)):
  desc += (' in module ' + module.__name__)
 if (type(object) is _OLD_INSTANCE_TYPE):
  object = object.__class__
 elif (not (inspect.ismodule(object) or inspect.isclass(object) or inspect.isroutine(object) or inspect.isgetsetdescriptor(object) or inspect.ismemberdescriptor(object) or isinstance(object, property))):
  object = type(object)
  desc += ' object'
 return (((title % desc) + '\n\n') + text.document(object, name))

def render_doc ( thing , title = 'Python Library Documentation: %s' , forceload = 0 ) : ( object , name ) = resolve ( thing , forceload ) desc = describe ( object ) module = inspect . getmodule ( object ) if ( name and ( '.' in name ) ) : desc += ( ' in ' + name [ : name . rfind ( '.' ) ] ) elif ( module and ( module is not object ) ) : desc += ( ' in module ' + module . __name__ ) if ( type ( object ) is _OLD_INSTANCE_TYPE ) : object = object . __class__ elif ( not ( inspect . ismodule ( object ) or inspect . isclass ( object ) or inspect . isroutine ( object ) or inspect . isgetsetdescriptor ( object ) or inspect . ismemberdescriptor ( object ) or isinstance ( object , property ) ) ) : object = type ( object ) desc += ' object' return ( ( ( title % desc ) + '\n\n' ) + text . document ( object , name ) )
render text documentation .