8000 [3.12] gh-127347: Document `traceback.print_list` (GH-127348) (#127570) · python/cpython@8e3c2d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e3c2d2

Browse files
[3.12] gh-127347: Document traceback.print_list (GH-127348) (#127570)
Add an documentation entry about `traceback.print_list` Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
1 parent f19c50a commit 8e3c2d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/traceback.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ Module-Level Functions
157157
arguments have the same meaning as for :func:`print_stack`.
158158

159159

160+
.. function:: print_list(extracted_list, file=None)
161+
162+
Print the list of tuples as returned by :func:`extract_tb` or
163+
:func:`extract_stack` as a formatted stack trace to the given file.
164+
If *file* is ``None``, the output is written to :data:`sys.stderr`.
165+
166+
160167
.. function:: format_list(extracted_list)
161168

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

0 commit comments

Comments
 (0)
0