34 extract<Kernel::V3D> converter(p);
35 if (converter.check()) {
41 const size_t length = len(p);
43 throw std::invalid_argument(
"Incorrect length for conversion to V3D");
46 p.attr(
"__getitem__")(0);
47 }
catch (boost::python::error_already_set &) {
48 throw std::invalid_argument(std::string(
"Cannot convert object to V3D. Expected a python sequence found ") +
49 p.ptr()->ob_type->tp_name);