Files
pybind11/include/pybind11/subinterpreter.h
b-pass a8e223d0cd Directly check if/which interpreter is active before doing CLEAR in destructor (#5965)
* Directly check if/which interpreter is active before doing CLEAR in destructors.

Py_IsFinalizing only applies to the main interpreter.

* Backward compatibility fixes

* Make clang-tidy happy

* Add nullptr checks to istate as Cursor suggested
2026-01-20 06:51:25 -05:00

11 KiB