(object)
return result and re.sub('^ *\n', '', result.rstrip()) or ''
Get the doc string or comments for an object.
Get the doc string or comments for an object.
Get the doc string or comments for an object .
def getdoc(object):
    """Get the doc string or comments for an object."""
    result = _getdoc(object) or inspect.getcomments(object)
    return result and re.sub('^ *\n', '', result.rstrip()) or ''
def getdoc ( object ) : result = _getdoc ( object ) or inspect . getcomments ( object ) return result and re . sub ( '^ *\n' , '' , result . rstrip ( ) ) or ''