diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-08-18 10:37:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 10:37:41 (GMT) |
commit | c5bc67b2a17d9053be9d0079eb7de948626d33c3 (patch) | |
tree | 16a1b694af1ba5c16f59e84b58084722cac83a54 | |
parent | 1a720c600391f4076097f2ab667e9521c8e521fa (diff) | |
download | cpython-c5bc67b2a17d9053be9d0079eb7de948626d33c3.zip cpython-c5bc67b2a17d9053be9d0079eb7de948626d33c3.tar.gz cpython-c5bc67b2a17d9053be9d0079eb7de948626d33c3.tar.bz2 |
gh-95913: Add traceback module additions to what's new in 3.11 (GH-95980)
-rw-r--r-- | Doc/whatsnew/3.11.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 3832fdf..27a0382 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -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 ------ |