-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Return an error state from HPyField_Store #460
Comments
It's about the type of the "owner" or the field value or both? For the owner: it must be defined in the extension that calls |
I remember that we discussed if I'm curious: why does it fail on PyPy if |
Yes, it is a sanity check. The |
Cython takes this approach: rather than segfault it will fail to import a c-extension that does not match its expectations. Accepting a segfault as a proper way to notify users about errors seems to be a last-result technique that should be avoided if possible. |
Currently
HPyField_Store
has a void return value. On PyPy, the function can fail if the type has notp_traverse
.The text was updated successfully, but these errors were encountered: