@classmethod
def fromObject(cls, obj, decode=None):
    """
        Construct a `Documentation` from any object with a docstring

        With `decode=True`, decode docstrings as utf-8, then run them through ftfy, and return unicode.
        This is for compatibility with Python 2, where docstrings are usually byte strings.
        """
    if obj.__doc__ is None:
        return cls(u'' if decode else '')
    r = cls.fromString(obj.__doc__, decode=decode)
    return r
