8000 BUG, ENH: Fix ``iso_c_binding`` type maps and fix ``bind(c)`` support by charris · Pull Request #24622 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG, ENH: Fix iso_c_binding type maps and fix bind(c) support #24622

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 17 commits into from
Sep 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DOC: Add a release note
  • Loading branch information
HaoZeke authored and charris committed Sep 2, 2023
commit 19c359163a862f4d95579c468743efe3386e94fd
10 changes: 10 additions & 0 deletions doc/release/upcoming_changes/24555.new_feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
``bind(c)`` support for ``f2py``
--------------------------------
Both functions and subroutines can be annotated with ``bind(c)``. ``f2py`` will
handle both the correct type mapping, and preserve the unique label for other
``C`` interfaces.

**Note:** ``bind(c, name = 'routine_name_other_than_fortran_routine')`` is not
honored by the ``f2py`` bindings by design, since ``bind(c)`` with the ``name``
is meant to guarantee only the same name in ``C`` and ``Fortran``, not in
``Python`` and ``Fortran``.
0