views:

87

answers:

2
+1  A: 

Checkout ctypes. It's part of the standard Python library set. I can't speak to it's use with C++, but I suspect it will work nicely.

Peter Rowell
C++ has no standard binary interface, so ctypes is not guaranteed to work. For calling functions in C binaries it is very nice indeed.
Roberto Bonvallet
+1  A: 

The Boost.Python library allows easy interoperability between C++ and Python.

The tutorial shows how to wrap C++ functions and classes to use them from Python.

Roberto Bonvallet