Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-95913: Add traceback module additions to what's new in 3.11 #95980

Merged
merged 5 commits into from
Aug 18, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,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
iritkatriel marked this conversation as resolved.
Show resolved Hide resolved
---------

* 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
iritkatriel marked this conversation as resolved.
Show resolved Hide resolved
formatted ``TracebackException`` instance to a file.
iritkatriel marked this conversation as resolved.
Show resolved Hide resolved
(Contributed by Irit Katriel in :issue:`33809`.)

typing
iritkatriel marked this conversation as resolved.
Show resolved Hide resolved
------

Expand Down