for example: #include <Python.h> void exec_python_code(int arg, char** argv) { Py_Initialize(); Py_Main(argc,argv); Py_Finalize(); }
What I would like to know is: after Py_Main(argc,argv); How do I get every variable in python space, say a=[1,2,3,'Hello World',[2,3]] b=['xx','xxx','ffff',0.1234] , and use them in C++? any sample code? Thanks in advance! -- http://mail.python.org/mailman/listinfo/python-list