[C++-sig] Trouble converting data from numpy.array to c++
anArray = numpy.array((1, 2, 3)). After extracting the symbol "anArray" from the directory in a boost::python::object, I'm trying to extract the values in C++: int val = bp::extract<int>(anArray[0]); It doesn't work and raise the error