Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: f2py: thread-safe forcomb #29091

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
May 31, 2025
Merged

BUG: f2py: thread-safe forcomb #29091

merged 1 commit into from
May 31, 2025

Conversation

crusaderky
Copy link
Contributor

@crusaderky crusaderky commented May 30, 2025

Closes #29086

There are zero tests for this (you could add a syntax error and the numpy test suite would still pass).
With my complete lack of knowledge of fortran, I'm unable to write one.

Tested in scipy: scipy/scipy#23084

@crusaderky
Copy link
Contributor Author

CI failure seems unrelated:

   Error code: Connection failed
   Error message: Failed to connect to codecs.opensuse.org port 80 after 4000 ms: Could not connect to server

@crusaderky crusaderky marked this pull request as ready for review May 30, 2025 12:33
@rgommers rgommers added the 39 - free-threading PRs and issues related to support for free-threading CPython (a.k.a. no-GIL, PEP 703) label May 30, 2025
Copy link
Member

@ngoldbaum ngoldbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - I'm OK with not having explicit tests for this in NumPy if SciPy is using it.

@HaoZeke any chance you can take a look too?

@ngoldbaum ngoldbaum added 09 - Backport-Candidate PRs tagged should be backported component: numpy.f2py labels May 30, 2025
@ngoldbaum
Copy link
Member

(I restarted the failing CI too)

@seberg
Copy link
Member

seberg commented May 31, 2025

I'll merge it, thanks. It LGTM and then it'll be in the next nightly wheel.

@seberg seberg merged commit f925c0c into numpy:main May 31, 2025
75 checks passed
charris pushed a commit to charris/numpy that referenced this pull request May 31, 2025
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label May 31, 2025
charris added a commit that referenced this pull request May 31, 2025
@crusaderky crusaderky deleted the forcomb branch June 1, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 39 - free-threading PRs and issues related to support for free-threading CPython (a.k.a. no-GIL, PEP 703) component: numpy.f2py
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: thread safety issue in f2py implementation
5 participants