Skip to content

Conversation

@ngoldbaum
Copy link
Member

I neglected to add the incantation to re-acquire the GIL in the error condition when I dropped the NPY_METH_REQUIRES_PYAPI flag for this cast. This adds it, which should hopefully prevent a crash that the current tests happen to not trigger.

@ngoldbaum ngoldbaum merged commit 325730c into numpy:main Dec 14, 2022
SwayamInSync added a commit that referenced this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant