for example I have the following code:
#include <Python.h>
void exec_pythoncode ( int arg, char**argv )
{
Py_Initialize() ;
Py_Main(argc,ar gv);
Py_Finalize();
}
What I would like to know is how can I get the variables I want
after Py_Main(argc,ar gv)
say I have a=[1,2,'Hello World',0.1234] in the python space,
I would like to have it as a struct in C++.
Any sample code?
Thanks in advance!
#include <Python.h>
void exec_pythoncode ( int arg, char**argv )
{
Py_Initialize() ;
Py_Main(argc,ar gv);
Py_Finalize();
}
What I would like to know is how can I get the variables I want
after Py_Main(argc,ar gv)
say I have a=[1,2,'Hello World',0.1234] in the python space,
I would like to have it as a struct in C++.
Any sample code?
Thanks in advance!
Comment