BUG: Handle iso_c_type
mappings more consistently
#25480
Merged
+175
−74
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:
cfuncs
here)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_binding
kinds to supportedf2py
types, 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.