Skip to content

Commit f21d18a

Browse files
committed
DOC: Note regarding modified fortran wrappers
1 parent e15a7ff commit f21d18a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/source/f2py/python-usage.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ In Python:
243243
.. literalinclude:: ./code/results/extcallback_session.dat
244244
:language: python
245245

246+
.. note::
247+
248+
When using modified Fortran code via ``callstatement`` or other directives,
249+
the wrapped Python function must be called as a callback, otherwise only the
250+
bare Fortran routine will be used. For more details, see
251+
https://github.com/numpy/numpy/issues/26681#issuecomment-2466460943
252+
246253
Resolving arguments to call-back functions
247254
------------------------------------------
248255

0 commit comments

Comments
 (0)