|
From: Bo P. <be...@gm...> - 2008-10-18 23:03:13
|
Dear list,
I am using std_vector.i to pass and return std::vector<int> etc from
C++ to Python. I notice that a function
vector<int> func()
{
return vector<int>(5);
}
would return a Python tuple if 'func()' is called in Python. How can I
make swig return a list? I notice something like
SWIG_PYTHON_OUTPUT_TUPLE in the generated wrap file but I do not know
if it is used for such a purpose.
Many thanks in advance.
Bo
|