[C++-sig] Converting custom string pointer to python string
Stefan Seefeld
seefeld at sympatico.ca
Fri Jan 26 21:07:20 CET 2007
ext at sidvind.com wrote:
>> There is a section on custom string conversions in the FAQ:
>>
>> http://www.boost.org/libs/python/doc/v2/faq.html#custom_string
>>
>> HTH,
>> Ralf
>
> Yes, I read that. That helped me to come as far as I have. But it only
> shows how to use copied instances and references, not pointers.
In Python, strings are invariant (i.e. const). You can't modify a string
in place. Thus, what I believe you are aiming for isn't possible, on the
language level.
Regards,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
More information about the Cplusplus-sig
mailing list