CXX and Python Embedding
Benjamin Geer
beroul at yahoo.com
Sat Oct 28 19:20:01 EDT 2000
jjwinkelman at my-deja.com wrote:
> Q1) Let's say I wanted to embed Python in a C++
> app. and expose some internal objects for use by
> python. Let's also say that I create these
> objects using CXX...
I recommend using SWIG, the wrapper generator (http://www.swig.org). I've
created a small example of how to do what you're talking about with SWIG,
without bothering with global variables or the Python extension API at all;
see http://www.btinternet.com/~amisuk/bg/python/embedding.html.
Cheers,
Benjamin
More information about the Python-list
mailing list