summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2021-02-07 21:52:15 +0200
committerPearu Peterson <pearu.peterson@gmail.com>2021-02-07 22:25:27 +0200
commitea557b2c6c681f029cfee1ea3ddf0b6e87f2dab5 (patch)
treef95f2304004fafc7e91efaa78d58c5a7e52a6b79 /numpy
parent3e2406a51845dbefd696d596fd2e0961b92ed09a (diff)
downloadnumpy-ea557b2c6c681f029cfee1ea3ddf0b6e87f2dab5.tar.gz
[MAINT] Fix regression in using --capi-api flag and callbacks
Diffstat (limited to 'numpy')
-rwxr-xr-xnumpy/f2py/rules.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py
index 4e1cf0c7d..b9cbc5487 100755
--- a/numpy/f2py/rules.py
+++ b/numpy/f2py/rules.py
@@ -809,7 +809,7 @@ if (#varname#_cb.capi==Py_None) {
""",
{debugcapi: ["""\
fprintf(stderr,\"debug-capi:Assuming %d arguments; at most #maxnofargs#(-#nofoptargs#) is expected.\\n\",#varname#_cb.nofargs);
- CFUNCSMESSPY(\"for #varname#=\",#cbname#_capi);""",
+ CFUNCSMESSPY(\"for #varname#=\",#varname#_cb.capi);""",
{l_not(isintent_callback): """ fprintf(stderr,\"#vardebugshowvalue# (call-back in C).\\n\",#cbname#);"""}]},
"""\
CFUNCSMESS(\"Saving callback variables for `#varname#`.\\n\");