SWIG Question
frankmcgeough at my-deja.com
frankmcgeough at my-deja.com
Thu Oct 14 17:03:38 EDT 1999
I am a SWIG newbie. It looks pretty cool. I was able to download it
today and get basic stuff working in a couple hours.
Question: I have a number of C++ classes that have string members that
are returned by get methods.
ex: std::string getErrorString();
SWIG maps this to a string representing a pointer by default. I'd like
to do a .c_str() and convert the value to a Python string. How do I
setup a typemap to do this?
Thanks,
Frank
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list