Templates Python and Swig

Balaji balaji at email.arizona.edu
Sat Aug 14 20:15:38 CEST 2004

Can any one help me with this.

I have an c++ header file which describes a method given below.

void setRows(const vector<string> &rowNames, const vector<double>
&lhs,const vector<double> &rhs);

How I'm supposed to write this template in a interface file.

So that when I pass (['a','b','c'],[0,0,0],[1,2,3]) in python it
accepts it.

Thanx in advance


More information about the Python-list mailing list