Skip to content

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

Merged
charris merged 1 commit into
numpy:maintenance/2.2.xfrom
charris:backport-28133
Jan 10, 2025
Merged

BUG: call PyType_Ready in f2py to avoid data races#28137
charris merged 1 commit into
numpy:maintenance/2.2.xfrom
charris:backport-28133

Conversation

@charris
Copy link
Copy Markdown
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
@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