Paulin Dussautoir
Paulin Dussautoir
The following snippet results in the expected behavior on my machine: ``` #include "pybind11/embed.h" #include "pybind11/pybind11.h" #include "pybind11/stl.h" namespace py = pybind11; class TestClass { public: TestClass() = default; std::vector::iterator...
Well, I might have been wrong when I said locals were not duplicated. This is the address of the variable containing the internals when `get_local_internals` is called during the first...
Then I think the best solution would be to register a callback in [`PyModuleDef::m_free`](https://docs.python.org/3/c-api/module.html#c.PyModuleDef.m_free) which clear the locals, and keep one `local_internals` instance by shared library. In that case, `EMBEDDED_MODULES`...