BUG: Handle iso_c_type mappings more consistently#25480
Merged
charris merged 9 commits intonumpy:maintenance/1.26.xfrom Dec 23, 2023
Merged
BUG: Handle iso_c_type mappings more consistently#25480charris merged 9 commits intonumpy:maintenance/1.26.xfrom
iso_c_type mappings more consistently#25480charris merged 9 commits intonumpy:maintenance/1.26.xfrom
Conversation
Fixes numpygh-25226 MAINT: Cleanup and scope fix better [f2py]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #25226.
Closes #25207. This one could use a backport. Needs:
cfuncshere)As discussed below, there were basically two deficiencies:
iso_c_binding) were mapped to ignored C typesThis PR fixes (pragmatically) both these deficiences, for the first problem, the fix is a simple refactor and cleanup.
The second issue is a little trickier. For now, the pragmatic solution (as done by users anyway) is to map the
iso_c_bindingkinds to supportedf2pytypes, i.e. to one of:Pending a more complete overhaul of the generated bindings (tracked in #25229, which @Pranavchiku is also looking into) this is the optimal bugfix for #25207.