How to embed?
fractal97 at hotmail.com
Sat Sep 8 18:25:55 CEST 2001
OK here is my question.
I have a file that contains a definition of a function
Now, I want to embed Python in a C program. After calling Py_Initialize():
I can call PyRun_SimpleString("import exmpl\n"); to import my function.
Now suppose that in my C program I have statements
double X,Y, result_in_c;
How do I pass X and Y to foo and get the output from foo to result_in_c so
that I can process this output further in my C program?
More information about the Python-list