An alternative way to set the value of a variable in pocketpy wihout converting to a string
I am using pocketpy as an embedded interpreter for a C++ program. One thing I need to do is convert a std::vector<float>
to a named pocketpy variable. I can do this by evaluating a string version and passing the string to the vm->exec
method but that seems like an inefficient approach (vm
is the pkpy::VM
):