(obj)
Get the documentation string for an object if it is not
    inherited from its class.
Get the documentation string for an object if it is not
    inherited from its class.
Get the documentation string for an object if it is not inherited from its class .
def _getowndoc(obj):
    """Get the documentation string for an object if it is not
    inherited from its class."""
    try:
        doc = object.__getattribute__(obj, '__doc__')
        if doc is None:
            return None
        if obj is not type:
            typedoc = type(obj).__doc__
            if isinstance(typedoc, str) and typedoc == doc:
                return None
        return doc
    except AttributeError:
        return None
def _getowndoc ( obj ) : try : doc = object . __getattribute__ ( obj , '__doc__' ) if doc is None : return None if obj is not type : typedoc = type ( obj ) . __doc__ if isinstance ( typedoc , str ) and typedoc == doc : return None return doc except AttributeError : return None