]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-95913: Add traceback module additions to what's new in 3.11 (GH-95980)
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Thu, 18 Aug 2022 10:37:41 +0000 (11:37 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Aug 2022 10:37:41 +0000 (11:37 +0100)
Doc/whatsnew/3.11.rst

index 3832fdfbe82b943e9da7f6e7f219a376e5373732..27a038292f953a2e20a2b5374fcb555bbcf724ad 100644 (file)
@@ -825,6 +825,20 @@ time
   it had a resolution of 1 millisecond (10\ :sup:`-3` seconds).
   (Contributed by Benjamin Szőke, Dong-hee Na, Eryk Sun and Victor Stinner in :issue:`21302` and :issue:`45429`.)
 
+
+traceback
+---------
+
+* Add :func:`traceback.StackSummary.format_frame_summary` to allow users
+  to override which frames appear in the traceback, and how they are
+  formatted.
+  (Contributed by Ammar Askar in :issue:`44569`.)
+
+* Add :func:`traceback.TracebackException.print`, which prints the
+  formatted :exc:`~traceback.TracebackException` instance to a file.
+  (Contributed by Irit Katriel in :issue:`33809`.)
+
+
 typing
 ------