/* wordlookup.i */ %module wordlookup %{ #include "wordlookup.hpp" %} %typemap(in) string { $1 = string(PyString_AsString($input)); } %include "wordlookup.hpp"