(self, f, t)
return stack, i
Return a list of (frame, lineno) in a stack trace and a size.

        List starts with original calling frame, if there is one.
        Size may be number of frames above or below f.
Return a list of (frame, lineno) in a stack trace and a size.
Return a list of ( frame lineno ) in a stack trace and a size .
def get_stack(self, f, t):
        """Return a list of (frame, lineno) in a stack trace and a size.

        List starts with original calling frame, if there is one.
        Size may be number of frames above or below f.
        """
        stack = []
        if t and t.tb_frame is f:
            t = t.tb_next
        while f is not None:
            stack.append((f, f.f_lineno))
            if f is self.botframe:
                break
            f = f.f_back
        stack.reverse()
        i = max(0, len(stack) - 1)
        while t is not None:
            stack.append((t.tb_frame, t.tb_lineno))
            t = t.tb_next
        if f is None:
            i = max(0, len(stack) - 1)
        return stack, i
def get_stack ( self , f , t ) : stack = [ ] if t and t . tb_frame is f : t = t . tb_next while f is not None : stack . append ( ( f , f . f_lineno ) ) if f is self . botframe : break f = f . f_back stack . reverse ( ) i = max ( 0 , len ( stack ) - 1 ) while t is not None : stack . append ( ( t . tb_frame , t . tb_lineno ) ) t = t . tb_next if f is None : i = max ( 0 , len ( stack ) - 1 ) return stack , i