Exposing a C++ class instance to a python embedded interpreter
问题 I am looking for a simple way to expose a C++ class instance to a python embedded interpreter. I have a C++ library. This library is wrapped (using swig for the moment) and I am able to use it from the python interpreter I have a C++ main program which instanciates a Foo class from my library and embeds a python interpreter I would like to expose my C++ world instance of Foo to the python world (and seen as a Foo class). Is this possible, if so, how? I think it's almost like in the first