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

Conversation

charris
Copy link
Member

@charris charris commented Jan 10, 2025

Backport of #28133.

Fixes #28122

Chesterton's fence: I have no idea if the lack of a PyType_Ready call was intentional.

That said, it seems to be missing all the way back in 2005 so it may be that f2py has always been implicitly relying on Python finalizing the type and that's been fine until now.

@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs 39 - free-threading PRs and issues related to support for free-threading CPython (a.k.a. no-GIL, PEP 703) labels Jan 10, 2025
@charris charris added this to the 2.2.2 release milestone Jan 10, 2025
@charris charris merged commit 1805a3a into numpy:maintenance/2.2.x Jan 10, 2025
68 checks passed
@charris charris deleted the backport-28133 branch January 10, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs 39 - free-threading PRs and issues related to support for free-threading CPython (a.k.a. no-GIL, PEP 703)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants