> result.append(PyUnicode_FromString(i->c_str()));
try
result.append(object(handle<>(PyUnicode_FromString(i->c_str();
The handle<> is a way to tell Boost.Python if you own the reference or if it is
borrowed (among other things). The
suggested code assumes you own the reference.
R
On 2/21/11 14:33 , Hans Meine wrote:
Am Montag, 21. Februar 2011, um 11:36:52 schrieb Wichert Akkerman:
I'm trying to do something which should be very simple, but I'm not
having much luck figuring out how from the existing documentation.
For a python 2 project I am trying to return a gettext-t
Am Montag, 21. Februar 2011, um 11:36:52 schrieb Wichert Akkerman:
> I'm trying to do something which should be very simple, but I'm not
> having much luck figuring out how from the existing documentation.
>
> For a python 2 project I am trying to return a gettext-translated string
> as a unicode
I'm trying to do something which should be very simple, but I'm not
having much luck figuring out how from the existing documentation.
For a python 2 project I am trying to return a gettext-translated string
as a unicode instance to python. The return value for gettext() is a
UTF-8 encoded cha