traceback.print_list()

traceback.print_list(extracted_list, file=None)[source]

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