Re: [C++-sig] [boost python] : how to pass a tuple of lists from python to C++

2020-02-07 Thread stefan
On 2020-02-07 4:06 p.m., HOUSSEN Franck wrote: With boost python, how to pass a tuple of lists from python to C++ ? Code attached : line 12 crashes ?! Googling but no fix for now. You are referring to this line:   np::ndarray lsInt = boost::python::extract(t[0]); Note that this line is actua

[C++-sig] [boost python] : how to pass a tuple of lists from python to C++

2020-02-07 Thread HOUSSEN Franck
With boost python, how to pass a tuple of lists from python to C++ ? Code attached : line 12 crashes ?! Googling but no fix for now. Expected results should look like this: >> make; python dummyTest.py g++ -I/usr/include/python2.7 -o dummy.so -shared -fPIC dummy.cpp -lboost_python -lboost_numpy do