From 46be6a81df78cb55119507af104e45032077445c Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Sun, 14 Aug 2022 12:31:43 +0100 Subject: [PATCH 1/3] bpo-95913: Add traceback module addition to what's new in 3.11 --- Doc/whatsnew/3.11.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index f1f023038abe1c..1cf4e70da06b8a 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -826,6 +826,18 @@ 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 configure 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 ``TracebackException`` instance to a file. + (Contributed by Irit Katriel in :issue:`33809`.) + typing ------ From 0944997bac72ebe4586791b2922de2be186433d9 Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Wed, 17 Aug 2022 19:26:24 +0100 Subject: [PATCH 2/3] =?UTF-8?q?configure=20=E2=80=94>=20override?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/whatsnew/3.11.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index e8fe05f032ae87..04a0a87ff041a1 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -829,7 +829,7 @@ traceback --------- * Add :func:`traceback.StackSummary.format_frame_summary` to allow users - to configure which frames appear in the traceback, and how they are + to override which frames appear in the traceback, and how they are formatted. (Contributed by Ammar Askar in :issue:`44569`.) From 0da2cb8b2185ab684ad8152eedeca3331f23f92c Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Thu, 18 Aug 2022 09:25:44 +0100 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: C.A.M. Gerlach --- Doc/whatsnew/3.11.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 04a0a87ff041a1..27a038292f953a 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -825,6 +825,7 @@ 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 --------- @@ -833,10 +834,11 @@ traceback formatted. (Contributed by Ammar Askar in :issue:`44569`.) -* Add :func:`traceback.TracebackException.print` which prints the - formatted ``TracebackException`` instance to a file. +* Add :func:`traceback.TracebackException.print`, which prints the + formatted :exc:`~traceback.TracebackException` instance to a file. (Contributed by Irit Katriel in :issue:`33809`.) + typing ------ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy