Print the list of tuples as returned by extract_tb() or extract_stack() as a formatted stack trace to the given file.
traceback/print_list
print_list