From 8e3c2d2425f544063ef4a76cf8b32e473b378bae Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:29:10 +0100 Subject: [PATCH] [3.12] gh-127347: Document `traceback.print_list` (GH-127348) (#127570) Add an documentation entry about `traceback.print_list` Co-authored-by: Tomas R. --- Doc/library/traceback.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst index 9d57c3545233..07960e4b1042 100644 --- a/Doc/library/traceback.rst +++ b/Doc/library/traceback.rst @@ -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 -- 2.47.3