Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-06 08:39:02

Hi Kevin,

I also suggest you cross-post this to comp.lang.python and the c++-sig.
I'd really be interested in the answer, if you find one. In particular,
I'd love to have an example of this for the Boost.Python docs.


----- Original Message -----
From: "kk71878" <kk71878_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, March 05, 2002 12:08 PM
Subject: [boost] embedding and extending with Boost:Python

> Greetings,
> I've got a project in which I need to provide my own C++ datamodel an
> extention to Python, but I also want to have access to this extention
> from within a Python interpreter embedded in my program. I also want
> Python and C++ to modify the same datamodel within the same program.
> So far, I've gotten the Python interpreter embedded within the
> program, and I've also created a Boost:Python .so file to import into
> Python. It works if I use the command-line console, but if I use the
> embedded console, it fails an assert (!find_class(class_name)) when it
> tries to import. What am I missing? I've tried to look at the Python
> docs to do this, but as many of you know, the Python API docs are
> limited in their explanation.
> Thanks,
> --Kevin Killingsworth
> Info: Send unsubscribe requests to:
> Your use of Yahoo! Groups is subject to

Boost list run by bdawes at, gregod at, cpdaniel at, john at