Skip to content

gh-99266: ctypes: Preserve a more detailed exception in _SimpleCData.from_param #99760

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

Merged
merged 15 commits into from
Jan 21, 2023

Conversation

kamilturek
Copy link
Contributor

@kamilturek kamilturek commented Nov 24, 2022

Closes #99266.

The exception from fd->setfunc is now saved and then restored if the object doesn't have an _as_parameter_.

@kamilturek kamilturek force-pushed the gh-99266 branch 2 times, most recently from fba818d to 6d8d1ce Compare November 24, 2022 21:00
@AlexWaygood AlexWaygood changed the title gh-99266: Preserve a more detailed exception in from_param gh-99266: ctypes: Preserve a more detailed exception in _SimpleCData.from_param Nov 24, 2022
@kamilturek kamilturek marked this pull request as ready for review November 24, 2022 22:10
Copy link
Contributor

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

This LGTM, thanks!

Copy link
Contributor

@kumaraditya303 kumaraditya303 left a comment

Choose a reason for hiding this comment

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

Please add some tests, the doctests are not run by the buildbots.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@kamilturek
Copy link
Contributor Author

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@kumaraditya303: please review the changes made to this pull request.

@kumaraditya303 kumaraditya303 added topic-ctypes 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels Jan 21, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit 924e7bf 🤖

If you want to schedule another build, you need to add the :hammer: test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 21, 2023
Copy link
Contributor

@kumaraditya303 kumaraditya303 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@kamilturek
Copy link
Contributor Author

Thanks for the help and review! 🙂 That was a pleasure.

@kumaraditya303 kumaraditya303 merged commit b4e11a7 into python:main Jan 21, 2023
@kamilturek kamilturek deleted the gh-99266 branch January 21, 2023 13:49
@kamilturek kamilturek restored the gh-99266 branch January 21, 2023 13:49
@kamilturek kamilturek deleted the gh-99266 branch January 21, 2023 13:49
@kamilturek kamilturek restored the gh-99266 branch January 21, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ctypes: wrong exception message in docs
4 participants