Skip to content
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

BUG: nested use of parameters in definition of arrays in numpy.f2py #6307

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions numpy/f2py/crackfortran.py
Expand Up @@ -2624,11 +2624,12 @@ def analyzevars(block):
if d in params:
d = str(params[d])
for p in list(params.keys()):
m = re.match(
r'(?P<before>.*?)\b' + p + r'\b(?P<after>.*)', d, re.I)
if m:
re_1 = re.compile(r'(?P<before>.*?)\b' + p + r'\b(?P<after>.*)', re.I)
m = re_1.match(d)
while m:
d = m.group('before') + \
str(params[p]) + m.group('after')
m = re_1.match(d)
if d == star:
dl = [star]
else:
Expand Down