def get_documented_in_docstring(name, module=None, filename=None):
 try:
  (obj, real_name) = import_by_name(name)
  lines = pydoc.getdoc(obj).splitlines()
  return get_documented_in_lines(lines, module=name, filename=filename)
 except AttributeError:
  pass
 except ImportError as e:
  print((u"Failed to import '%s': %s" % (name, e)))
 return {}

def get_documented_in_docstring ( name , module = None , filename = None ) : try : ( obj , real_name ) = import_by_name ( name ) lines = pydoc . getdoc ( obj ) . splitlines ( ) return get_documented_in_lines ( lines , module = name , filename = filename ) except AttributeError : pass except ImportError as e : print ( ( u"Failed to import '%s': %s" % ( name , e ) ) ) return { }
find out what items are documented in the given objects docstring .