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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show PEP-678 notes in ultratb #14040

Closed
wants to merge 1 commit into from
Closed

Conversation

Zac-HD
Copy link
Contributor

@Zac-HD Zac-HD commented Apr 28, 2023

PEP 678 - Enriching Exceptions with Notes, is in my admittedly biased opinion a really nice way to attach messages to existing exceptions. Over the last year, it's been adopted by Hypothesis, Pytest, the standard library, and in a variety of other places I don't track so closely.

It's therefore unfortunate that today, notes are completely ignored by ultratb!

Since this bit one of my students at a conference tutorial, I thought I'd send in a PR to fix it before next time 馃榿 #13753 is similar but less severe for this use-case.

Copy link
Member

@Carreau Carreau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks that is great ! I'll review and merge soon.
I'll do a release today so it may not make the cut, but next month for sure !

@@ -26,6 +26,7 @@ __pycache__
.coverage
*.swp
.pytest_cache
.hypothesis
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should think of adding this to your global gitignore

@Carreau Carreau added this to the 8.14 milestone Apr 28, 2023
@Carreau
Copy link
Member

Carreau commented Jun 2, 2023

I merged #14039 And will try to make a release today to see if people complain and try to add the test of this one as well for next month.

Hope you had a lot of fun.

@Carreau Carreau modified the milestones: 8.14, 8.15 Jun 2, 2023
@Zac-HD
Copy link
Contributor Author

Zac-HD commented Jun 3, 2023

No need, I just checked by rebasing and this PR is entirely redundant with #14039 馃憤

@Zac-HD Zac-HD closed this Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants