https://github.com/python/cpython/commit/a1c52d1265c65bcf0d9edf87e143843ad54f9b8f
commit: a1c52d1265c65bcf0d9edf87e143843ad54f9b8f
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: Eclips4 <[email protected]>
date: 2024-12-04T10:28:14+02:00
summary:

[3.13] gh-127347: Document `traceback.print_list` (GH-127348) (#127569)

Add an documentation entry about `traceback.print_list`

Co-authored-by: Tomas R. <[email protected]>

files:
M Doc/library/traceback.rst

diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index 100a92b73d5497..8f94fc448f2482 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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to