[C++-sig] special to_python for a particular function
Daniel Holth
dholth at fastmail.fm
Fri Feb 21 06:23:44 CET 2003
Hi. I'm using C++ std::strings to hold my 8-bit clean data but the
default to_python converter does not use string.size() to find the
length. This means I get only up to the first null character back into
Python. I wound up editing the boost library to fix this and it works
great now, perhaps this bug is fixed in CVS Boost.Python already...
I tried adding a new to_python in my declaration (without editing
Boost.Python) but it seems to insist on using the old one.
How can I have a special to_python for a particular function? Another
example I don't know how to do is functions that give and take char* and
int separately to mean a string and its length.
Thanks.
- Daniel Holth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030221/a1c6e18e/attachment.pgp>
More information about the Cplusplus-sig
mailing list