I have a python script that calls some C++ code, and in the C++ part, I want to define some static python object, for example: static boost::python::list obj
. However, according to pybind11 issue 1598 and 3274, it seems unsafe to do so, because the destructor of the static C++ object is called when the the program is exited and the python interpreter may already be in a invalid state at that time. I cant find much information about this in the doc, should I avoid static python object when using Boost.Python?