On 01/10/2010 12:36 PM, devin kelly wrote:
So I have to make something to do this conversion. This is where I'm
stuck now, I think I have to do something like this
BOOST_PYTHON_MODULE(vector_indexing_suite_ext){
boost::python::class_ >("PyVec")
.def(boost::python::vector_index
Well what I really to do is turn an STL vector into and python list. I want
to do this in a separate script, so I don't think eval is right for me. I
just started with an int because that's easier. I've gotten that part too,
my code looks like this:
int main(){
int
five_squared=0;
On 01/09/2010 01:52 PM, devin kelly wrote:
Hello,
I'm trying to expose some data that I develop in C++ to python.
Basically, the reverse of this sample code:
#include
#include
#include
#include
int main(){
Py_Initialize();
object main_module = import("__main__");
Hello,
I'm trying to expose some data that I develop in C++ to python. Basically,
the reverse of this sample code:
#include
#include
#include
#include
int main(){
Py_Initialize();
object main_module = import("__main__");
object main_namespace = main_module.attr("__d