PyBind11 destructor not invoked?
PyBind11 destructor not invoked? Question: I have a c++ class wrapped with PyBind11. The issue is: when the Python script ends the c++ destructor is not being automatically invoked. This causes an untidy exit because networking resources need to be released by the destructor. As a work-around it is necessary to explicitly delete the Python …