]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-127347: Document `traceback.print_list` (GH-127348) (#127569)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Dec 2024 08:28:14 +0000 (09:28 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Dec 2024 08:28:14 +0000 (10:28 +0200)
Add an documentation entry about `traceback.print_list`

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Doc/library/traceback.rst

index 100a92b73d5497a0c23fa5445b16aace030d5adc..8f94fc448f2482aea92fc1b11ed09f3f44351bfd 100644 (file)
@@ -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