Let's pretend that:
using namespace boost::python; void myClass::test(numeric::array& arrayParam) { const tuple &shape = extract<tuple>(arrayParam.attr("shape")); }
I would like to convert it to int and print, for example. I tried int x = shape[0]; but it gives me "impossible to convert" boost :: python :: api :: const_object_item into the message "int in initialization".
source share