Skip to content

Commit

Permalink
[3.13] pythongh-127347: Document traceback.print_list (pythonGH-127348
Browse files Browse the repository at this point in the history
) (python#127569)

Add an documentation entry about `traceback.print_list`

Co-authored-by: Tomas R. <[email protected]>
  • Loading branch information
miss-islington and tomasr8 authored Dec 4, 2024
1 parent bb46b74 commit a1c52d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Doc/library/traceback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ Module-Level Functions
arguments have the same meaning as for :func:`print_stack`.


.. function:: print_list(extracted_list, file=None)

Print the list of tuples as returned by :func:`extract_tb` or
:func:`extract_stack` as a formatted stack trace to the given file.
If *file* is ``None``, the output is written to :data:`sys.stderr`.


.. function:: format_list(extracted_list)

Given a list of tuples or :class:`FrameSummary` objects as returned by
Expand Down

0 comments on commit a1c52d1

Please sign in to comment.