summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2022-04-28 23:12:19 +0000
committerRohit Goswami <rog32@hi.is>2022-04-28 23:12:19 +0000
commite0e9c6af715d6aa92c9d952cb04c73bd5464a84f (patch)
tree7238530c8b62a1d4871140f2ade123eec557f0e9 /numpy
parent0eaa40db3a2f6bef26c0d7cc28eacf4f6d461917 (diff)
downloadnumpy-e0e9c6af715d6aa92c9d952cb04c73bd5464a84f.tar.gz
MAINT: Reduce f2py verbiage for valid parameters
Diffstat (limited to 'numpy')
-rwxr-xr-xnumpy/f2py/crackfortran.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py
index eb9ae03c6..971ebe320 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -2433,7 +2433,9 @@ def get_parameters(vars, global_params={}):
params[n] = eval(v, g_params, params)
except Exception as msg:
params[n] = v
- outmess('get_parameters: got "%s" on %s\n' % (msg, repr(v)))
+ # Don't report if the parameter is numeric gh-20460
+ if not real16pattern.match(v):
+ outmess('get_parameters: got "%s" on %s\n' % (msg, repr(v)))
if isstring(vars[n]) and isinstance(params[n], int):
params[n] = chr(params[n])
nl = n.lower()