Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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
Aug 14, 2023

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