Skip to content

Conversation

mattip
Copy link
Member

@mattip mattip commented Aug 14, 2023

Two fixes:

  • use a context manager when opening a file
  • use the equivalent of sys.flags.optimize instead of Py_OptimizeFlag which was deprecated in 3.12. See the discussion in Allow efficient read access to PyConfig options python/cpython#99872. Cython also came across this deprecation, and chose a different solution to avoid holding the GIL but uses private interfaces.

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Aug 14, 2023
@charris charris merged commit ffcee41 into numpy:main Aug 14, 2023
@charris
Copy link
Member

charris commented Aug 14, 2023

Thanks Matti.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 18, 2023
@mattip mattip deleted the v3.12.0rc1 branch May 5, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants