<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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()