I only have a question about running a python object in C ++. Let me explain what I want to do in the following example.
int main () {
py = python_object();
while (1) {
int abc = py.get_num();
if (abc < 0) break;
do_something_in_my_cpp_code();
}
}
The python object I talked about here is oOjbect Capture .
I wonder how difficult it would be if you have experience with such things. I am also open to other possible methods, such as the opposite (running a C ++ object inside a python script). Thank!
source
share