mirror of
https://github.com/python/cpython.git
synced 2026-01-07 16:02:55 +00:00
[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>
This commit is contained in:
parent
f19c50a481
commit
8e3c2d2425
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue