Skip to content

BUG: cleanup warnings [skip azp][skip circle][skip travis][skip cirrus] - #24413

Merged
charris merged 1 commit into
numpy:mainfrom
mattip:v3.12.0rc1
Aug 14, 2023
Merged

charris merged 1 commit into
numpy:mainfrom
mattip:v3.12.0rc1

Conversation

@mattip

@mattip mattip commented Aug 14, 2023

Copy link
Copy Markdown
Member

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

charris commented Aug 14, 2023

Copy link
Copy Markdown
Member

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