21 #ifndef VEC_LIST_CONV_HH
22 #define VEC_LIST_CONV_HH
24 #include <boost/python.hpp>
38 static PyObject*
convert(
const std::vector<T>& vec) {
39 boost::python::list l;
40 for(
typename std::vector<T>::const_iterator it=vec.begin();it!=vec.end();++it){
43 return boost::python::incref(l.ptr());
helper to convert between python list tuple and std::vecot
static PyObject * convert(const std::vector< T > &vec)