-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
bpo-45292: [PEP 654] Update traceback display code to work with exception groups #29207
Merged
Merged
Changes from 17 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
42bed01
C traceback code
iritkatriel a2daa23
add ExceptionGroups support to traceback.py
iritkatriel 261917a
remove 'with X sub-exceptions' line from tracebacks
iritkatriel 7613b43
pass margin instead of margin_char
iritkatriel d98a72b
update news
iritkatriel d69916e
excs is tuple, use PyTuple apis. Change check to assertion.
iritkatriel f5cab69
remove redundant num_excs > 0 check (it is asserted above)
iritkatriel 5170f00
remove cpython_only from exception group tests
iritkatriel 2052c77
handle recursion errors (vert deeply nested EGs)
iritkatriel 5097300
WRITE_INDENTED_MARGIN macro --> write_indented_margin function
iritkatriel dc21cf8
move new traceback utils to internal/
iritkatriel d4007b7
test improvements
iritkatriel 169934e
pep7, improve error checking and clarity
iritkatriel aa4da45
add missing test to cover print_chained with/without parent_label
iritkatriel 6ee84f7
compare the complete expected tb text
iritkatriel ac7f34c
Update Misc/NEWS.d/next/Core and Builtins/2021-09-26-18-18-50.bpo-452…
iritkatriel d0d4961
don't need the regex anymore
iritkatriel 5c1015d
remove full-path labels
iritkatriel 83abebd
int --> bool
iritkatriel 16d077d
move code around
iritkatriel 64fb164
Tweak the top-level of traceback box as suggested by Yury
iritkatriel 88019f5
tidy up error handling
iritkatriel e963835
add limits for width and depth of formatted exception groups
iritkatriel e85510a
use _PyBaseExceptionGroup_Check macro
iritkatriel c15a7bd
remove redundant PyErr_Clear
iritkatriel d8cc6e8
minor tweak - move if out of loop
iritkatriel 61fab3f
remove excess whitespace
iritkatriel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to add these to the API, or can you just use the
export
keyword? Will external software use these APIs?