]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-95913: Add traceback module additions to what's new in 3.11 (GH-95980) (GH-96064)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Aug 2022 13:33:15 +0000 (06:33 -0700)
committerGitHub <noreply@github.com>
Thu, 18 Aug 2022 13:33:15 +0000 (14:33 +0100)
(cherry picked from commit c5bc67b2a17d9053be9d0079eb7de948626d33c3)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Doc/whatsnew/3.11.rst

index cda9e97d89818bbfc9fa69a80a2a6a0cfac30c95..92c66ebf2f8f3005809604633cb62cdb8382d029 100644 (file)
@@ -808,6 +808,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
 ------