-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-89770: Implement PEP-678 - Exception notes #31317
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1555087
PEP-678: exception notes are set by add_note(). __notes__ holds a tup…
iritkatriel 6a38688
clear notes with del e.__notes__, remove replace arg and None note op…
iritkatriel 7bab63e
do not create new tuple when __notes__ is accessed
iritkatriel 396b5f1
Revert "do not create new tuple when __notes__ is accessed"
iritkatriel f518aa5
add __notes__ attribute in add_note. Traceback ignores it if it's not…
iritkatriel 0438933
add in add_note a check that __notes__ is a list. Add the test. tweak…
iritkatriel dcc93ef
TypeError in add_note if __notes__ is not a list
iritkatriel 614378e
if __notes__ is not sequence, print repr(__notes__). If note is not a…
iritkatriel f240e71
simplify traceback code (no need to special case note which is a string)
iritkatriel 6786dbd
shallow copy the notes in split(), if it's a sequence
iritkatriel bdd4e2a
split() ignores notes if they are not a sequence
iritkatriel 711e804
typo in doc
iritkatriel e147f52
fix typo in test
iritkatriel 622ca51
Merge remote-tracking branch 'upstream/main' into pep-678
iritkatriel 404f80d
📜🤖 Added by blurb_it.
blurb-it[bot] c014ad8
update test_traceback
iritkatriel 47bfcdc
Merge branch 'main' into pep-678
iritkatriel 2ae22e4
update whatnew
iritkatriel 95be670
8000
code>
METH_VARARGS --> METH_O
iritkatriel Apr 14, 2022
520efd1
Merge branch 'main' into pep-678
iritkatriel a14e915
add_note no longer has a replace kwarg
iritkatriel 991e982
finish converting add_note to METH_O
iritkatriel 602b4c4
fix 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
split() ignores notes if they are not a sequence
- Loading branch information
commit bdd4e2a1edd51dee682761d7dc2fd12c5514e8e4
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.