def get_doc(cls, fname, default=TRIGGER, member=True):
        """Returns the function docstring the method should inherit.

          cls - the class from which to start looking for the method.
          fname - the method name on that class
          default - the docstring to return if none is found.
          member - is the target function already bound to cls?

        """

        print(cls)
        bases = cls.__mro__[:]
        if member:
            bases = bases[1:]
        for base in bases:
            print(base)
            func = getattr(base, fname, None)
            if not func:
                continue
            doc = getattr(func, '__doc__', default)
            if doc == default:
                continue
            return doc
        return default
Returns the function docstring the method should inherit.

          cls - the class from which to start looking for the method.
          fname - the method name on that class
          default - the docstring to return if none is found.
          member - is the target function already bound to cls?

        
recipes/Python/577746_Inherit_Method_Docstrings_Using_Only/recipe-577746.py