8000 BUG: call PyType_Ready in f2py to avoid data races by charris · Pull Request #28137 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: call PyType_Ready in f2py to avoid data races #28137

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 1 commit into from
Jan 10, 2025
Merged
Changes from all commits
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
BUG: call PyType_Ready in f2py to avoid data races
  • Loading branch information
ngoldbaum authored and charris committed Jan 10, 2025
commit c8e22169af53fd5e8ec28a1531f670585b1569b9
5 changes: 5 additions & 0 deletions numpy/f2py/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@
if (! PyErr_Occurred())
on_exit(f2py_report_on_exit,(void*)\"#modulename#\");
#endif

if (PyType_Ready(&PyFortran_Type) < 0) {
return NULL;
}

return m;
}
#ifdef __cplusplus
Expand Down
Loading
0