Skip to content

Show PEP-678 notes in ultratb - #14040

Closed
Zac-HD wants to merge 1 commit into
ipython:mainfrom
Zac-HD:pep678-support
Closed

Zac-HD wants to merge 1 commit into
ipython:mainfrom
Zac-HD:pep678-support

Conversation

@Zac-HD

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

Copy link
Copy Markdown
Contributor

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.

@Carreau Carreau left a comment

Copy link
Copy Markdown
Member

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 !

Comment thread .gitignore
.coverage
*.swp
.pytest_cache
.hypothesis

Copy link
Copy Markdown
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

Carreau commented Jun 2, 2023

Copy link
Copy Markdown
Member

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

Zac-HD commented Jun 3, 2023

Copy link
Copy Markdown
Contributor Author

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.

2 participants