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-89770: Implement PEP-678 - Exception notes #31317
Conversation
…le of the assigned notes
If you want to schedule another build, you need to add the " |
This reverts commit 7bab63e.
… a sequence of strings
Yeah, I like this! |
How about error handling when printing the traceback? Should we print something like "cannot print notes: not a sequence", and similarly if a note is not a str? |
How about printing If either of those fails, either raise an exception from |
I'll do something like what we do for str(exc). |
Heya - I think we should have an explicit test that if you |
That's a good point. I added the test and fixed the code to copy the notes in split(), so long as they are a sequence (producing a list). If people assign arbitrary objects to notes I don't know how to copy them. |
If you want to schedule another build, you need to add the " |
Sorry about the noise (I messed it up multitasking). Getting there now. |
If you want to schedule another build, you need to add the " |
The buildbots are happy with this. Let me know if you would like to re-review, otherwise I'll merge it tomorrow or so. |
No description provided.