[Xapian-discuss] int to string TypeError annoyance

Tim Brody tdb2 at ecs.soton.ac.uk
Fri Mar 11 10:51:41 GMT 2011



Hi All, 

In Perl, 

$db->set_metadata( "foo", 10 ); 

Results in,


TypeError in method 'WritableDatabase_set_metadata', argument 3 of type
'std::string const &' 

It looks like this is thrown by the SWIG
std::string typemap. Does someone with better SWIG skills than me know how
to fix SWIG such that it converts the int to a string rather than croaking?


(And besides that it's a very unhelpful error as it has no calling line
#)  
-- 
All the best,
Tim.
 


More information about the Xapian-discuss mailing list