def __get__(self, instance, owner):
        if instance is None:
            return self._class_doc

        exc = instance.exc
        try:
            if isinstance(exc, tuple):
                exc_name = '(%s)' % ', '.join(
                    map(attrgetter('__name__'), exc),
                )
            else:
                exc_name = exc.__name__

            return dedent(
                """\
                A wrapper around {inst.func.__name__!r} that will except:
                {exc}
                and handle any exceptions with {inst.handler.__name__!r}.

                Docs for {inst.func.__name__!r}:
                {inst.func.__doc__}

                Docs for {inst.handler.__name__!r}:
                {inst.handler.__doc__}
                """
            ).format(
                inst=instance,
                exc=exc_name,
            )
        except __HOLE__:
            return self._class_doc
dataset/ETHPy150Open pytoolz/toolz/toolz/functoolz.py/_ExceptsDoc.__get__