SWIG: C++ and Python/ vector<string>

Thomas tokauf at web.de
Fri Nov 14 17:34:27 CET 2008


I have a C++-Class "compiled" with SWIG into a Python-Modul. It works
fine. But there's is a problem with the C++-Returntype vector<string>.
If I call in my compiled Python-Module a certain method (from the C++-
Class) there is no vector as result - although the C++-Counterpart
returns a vector<string>. The Python-Counterpart (the method) returns
only a string like this:

_15436785_p_vector (alike this)

What can I do?

Thanks for help.



More information about the Python-list mailing list