Get object docstring

    :rtype: str

def getdoc(obj):
    """ Get object docstring

    :rtype: str
    """
    inspect_got_doc = inspect.getdoc(obj)
    if inspect_got_doc in (object.__init__.__doc__, object.__doc__):
        return '' # We never want this builtin stuff
    return (inspect_got_doc or '').strip()