def refresh_stack(self):
        """
        Recompute the stack after e.g. show_hidden_frames has been modified
        """
        self.stack, _ = self.compute_stack(self.fullstack)
        # find the current frame in the new stack
        for i, (frame, _) in enumerate(self.stack):
            if frame is self.curframe:
                self.curindex = i
                break
        else:
            self.curindex = len(self.stack)-1
            self.curframe = self.stack[-1][0]
            self.print_current_stack_entry()
def refresh_stack ( self ) : self . stack , _ = self . compute_stack ( self . fullstack ) for i , ( frame , _ ) in enumerate ( self . stack ) : if frame is self . curframe : self . curindex = i break else : self . curindex = len ( self . stack ) - 1 self . curframe = self . stack [ - 1 ] [ 0 ] self . print_current_stack_entry ( )
Recompute the stack after e.g. show_hidden_frames has been modified