[Python-checkins] gh-95913: Add traceback module additions to what's new in 3.11 (GH-95980) (GH-96064)

iritkatriel webhook-mailer at python.org
Thu Aug 18 09:33:21 EDT 2022


https://github.com/python/cpython/commit/7c334a3382acedec903b58d9b2c63fecd82f3748
commit: 7c334a3382acedec903b58d9b2c63fecd82f3748
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2022-08-18T14:33:15+01:00
summary:

gh-95913: Add traceback module additions to what's new in 3.11 (GH-95980) (GH-96064)

(cherry picked from commit c5bc67b2a17d9053be9d0079eb7de948626d33c3)

Co-authored-by: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>

Co-authored-by: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>

files:
M Doc/whatsnew/3.11.rst

diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index cda9e97d898..92c66ebf2f8 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -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
 ------
 



More information about the Python-checkins mailing list