Skip to content
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

Avoid deprecated Py_OptimizeFlag in Py3.12 #5343

Merged
merged 2 commits into from Mar 31, 2023

Commits on Mar 28, 2023

  1. Work around the deprecation of Py_OptimizeFlag in Py3.12 by reading t…

    …he value from the interpreter's current PyConfig.
    
    See python/cpython#99872
    scoder committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    56a0d1b View commit details
    Browse the repository at this point in the history
  2. Avoid access to PyConfig without holding the GIL when trying to read …

    …the old Py_OptimizeFlag. The flag was never meant to be modifiable and thus can be read once at module import time.
    
    See python/cpython#99872 (comment)
    scoder committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    1ff7673 View commit details
    Browse the repository at this point in the history