4 Feb
2009
4 Feb
'09
8:19 p.m.
Hello. I'm trying to embed python to an application. I did that with success and I'm using boost.python to make some bindings to my API. What I would like, is that the interpreter has access to my objects at runtime, namely, I don't want to create objects from python code but to use the c++ objects, created in my c++ application, from python (and I have wrappers for those in boost.python). I don't know how to achieve this. I just know how to wrap classes, but I have no idea how to expose instances. Any idea how to achieve this? I googled and found nothing clear. Thanks in advance.