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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

propagate exception context from pyfunctions #3443

Closed
wants to merge 1 commit into from

Conversation

davidhewitt
Copy link
Member

Fixes #3432

Our current implementation of PyErr::restore (before 3.12) doesn't propagate exception context when inside of an except block. This appears to be the root cause of #3432.

This PR attempts to resolve that and make the code paths between 3.12 and older versions more similar. I think there's more tidying up to do and might even be worth splitting into separate PRs to make motivations clear. Pushing this here so the code doesn't get forgotten while I multitask. Don't think it's necessarily worth reviewing yet.

@davidhewitt
Copy link
Member Author

Replaced by #3455

@davidhewitt davidhewitt deleted the no-constructor-defined branch September 15, 2023 13:13
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.

"TypeError: No constructor defined" discards exception context
1 participant