Skip to content

Commit 7c334a3

Browse files
gh-95913: Add traceback module additions to what's new in 3.11 (GH-95980) (GH-96064)
(cherry picked from commit c5bc67b) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 parent 504da3c commit 7c334a3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: Doc/whatsnew/3.11.rst

+14
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,20 @@ time
808808
it had a resolution of 1 millisecond (10\ :sup:`-3` seconds).
809809
(Contributed by Benjamin Szőke, Dong-hee Na, Eryk Sun and Victor Stinner in :issue:`21302` and :issue:`45429`.)
810810

811+
812+
traceback
813+
---------
814+
815+
* Add :func:`traceback.StackSummary.format_frame_summary` to allow users
816+
to override which frames appear in the traceback, and how they are
817+
formatted.
818+
(Contributed by Ammar Askar in :issue:`44569`.)
819+
820+
* Add :func:`traceback.TracebackException.print`, which prints the
821+
formatted :exc:`~traceback.TracebackException` instance to a file.
822+
(Contributed by Irit Katriel in :issue:`33809`.)
823+
824+
811825
typing
812826
------
813827

0 commit comments

Comments
 (0)