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
MAINT: Fix regep for bind matches
Make name optional
  • Loading branch information
HaoZeke authored and charris committed Sep 2, 2023
commit ff652f2b0a04ec7022057beb168eb2a9dce7d89a
2 changes: 1 addition & 1 deletion numpy/f2py/crackfortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def _resolvetypedefpattern(line):
return None, [], None

def parse_name_for_bind(line):
pattern = re.compile(r'bind\(\s*(?P<lang>[^,]+)\s*,\s*name\s*=\s*"(?P<name>[^"]+)"\s*\)', re.I)
pattern = re.compile(r'bind\(\s*(?P<lang>[^,]+)(?:\s*,\s*name\s*=\s*["\'](?P<name>[^"\']+)["\']\s*)?\)', re.I)
match = pattern.search(line)
bind_statement = None
if match:
Expand Down
0