Use Python library from C++

Wynand Winterbach wynand at realtimerodeo.net
Fri Nov 26 09:23:15 EST 2004


Robert Kern <rkern at ucsd.edu> wrote in message news:<co3qur$qdl$1 at news1.ucsd.edu>...
> Chang LI wrote:
> > I want to use the Python Libray from my C++ program.
> > The Python Libray is no GUI. How can I mix C++ and 
> > Python? 
... (snip)
> 
> Try Elmer.
> http://elmer.sf.net

There is also a library called PyCXX at http://cxx.sourceforge.net/.
It's main purpose is to provide a convenient C++ interface to the
Python C API. For example, it takes care of reference counting etc.
Although it's purpose is to write C++ extensions for Python, it should
be fairly easy to use it in reverse. It's a nice lib either way.



More information about the Python-list mailing list