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

fix: Replace bare static exception<T> with gil_safe_call_once_and_store. #4897

Merged
merged 1 commit into from
Oct 23, 2023

Commits on Oct 23, 2023

  1. Bug fix: Replace bare static exception<T> with `gil_safe_call_once_…

    …and_store`.
    
    This is to ensure that `Py_DECREF()` is not called after the Python interpreter was finalized already:
    
    https://github.com/pybind/pybind11/blob/3414c56b6c7c521d868c9a137ca2ace2e26b5b2e/include/pybind11/gil_safe_call_once.h#L19
    Ralf W. Grosse-Kunstleve committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    ca7bdac View commit details
    Browse the repository at this point in the history