'return True if the current frame has a var __tracebackhide__
resolving to True
mostly for internal use'

def ishidden(self):

    try:
        return self.frame.f_locals['__tracebackhide__']
    except KeyError:
        try:
            return self.frame.f_globals['__tracebackhide__']
        except KeyError:
            return False
