-
Notifications
You must be signed in to change notification settings - Fork 763
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
Add BaseExceptionGroup for Python >= 3.11 #3141
Conversation
Please add a newsfragment as described in https://pyo3.rs/v0.18.3/contributing#documenting-changes including a link to an upstream changelog, PEP, etc. The CI failure looks like this is not available in CPython 3.11.3 on Windows? Or is the name incorrect? |
Done!
Hmm not sure. I was kinda guessing at the name. It should be in 3.11 on all platforms. I think this is where it's defined? https://github.com/python/cpython/blob/f5088006ca8e9654fbc3de119462f0ab764e408b/PC/python3dll.c#L785-L786 |
The news fragment still mentions |
I am not sure whether the test defined by the |
It requires an argument |
Any suggestions on how to make sure the right Python version is being used? |
Okay, I think I figured it out. |
Do we need to do anything / can we make the methods like |
I think you would need to manually bind them if they are available via a C API. Are they? If they are only available as Python methods, you can already access them via |
I'm not sure. I don't see any other errors that have methods, so I'm guessing none of those are exposed via the C API? |
I don't see any C-API functions for BaseExceptionGroup, so I think this is probably all we would typically offer here :) |
Is there anything else needed here? |
I think this is fine to merge, though would you be willing to squash the commits? We like to keep a tidy commit history so bors isn't configured to squash everything |
Done! |
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Not sure if this is totally off base, but it looks like it may be this easy to add support for ExceptionGroup?