of tuples as returned by extract_tb() or
    extract_stack() as a formatted stack trace to the given file.s