def _extract_stack_info(stack):
  """
  Given a stack, save the static info for each frame (basically
  everything except for the reference to the frame).
  """

  stack_info = []
  for frame in stack: stack_info.append(frame[1:])
  return stack_info