I\'m experimenting with python functions right now. I\'ve found a way to import python functions into c/c++ code, but not the other way around.
I have a c++ program
You want to extend python with a C/C++ module. The following Python documentation is a good place to start reading: http://docs.python.org/extending/extending.html