code: def _save_trace(self):
          
          stack_trace = stack()
          try:
              self.trace = []
              for frm in stack_trace[5:]: # eliminate our own overhead
                  self.trace.insert(0, frm[1:])
          finally:
              del stack_trace
docs: Save current stack trace as formatted string.