-
Notifications
You must be signed in to change notification settings - Fork 778
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
Define _PyErr_ChainExceptions() FFI for CPython #2788
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2788: Define _PyErr_ChainExceptions() FFI for CPython r=messense a=ijl This appears to be the only way to chain exceptions via the FFI. It was introduced prior to CPython 3.7. It has some description of usage in PEP 490. There was a discussion of whether it should be made stable in BPO 44938. Co-authored-by: ijl <ijl@mailbox.org>
It's not presented in PyPy C-API, might need a bors r- |
Canceled. |
As another comment, it looks like the implementation basically just either calls Some possible follow-ups (maybe we can track in new issues):
|
This appears to be the only way to chain exceptions via the FFI. It was introduced prior to CPython 3.7. It has some description of usage in PEP 490. There was a discussion of whether it should be made stable in BPO 44938.
Ok, I've added the cfg for PyPy. |
bors r+ |
Build succeeded: |
This appears to be the only way to chain exceptions via the FFI. It was introduced prior to CPython 3.7. It has some description of usage in PEP 490. There was a discussion of whether it should be made stable in BPO 44938.