Boost logo

Boost Users :

Subject: [Boost-users] [Python] Expose c++ instances to python
From: Germán Diago (germandiago_at_[hidden])
Date: 2009-02-04 15:19:21


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net