Unicode docstrings in PyMethodDef?

C

Craig Ringer

Hi folks

I'm currently working on a fairly well internationalised app that embeds
a Python intepreter. I'd like to make the docstrings translatable, but
am running into the issue that the translation function returns unicode
data.

Does anybody here know what encoding docstrings in PyMethodDef are
interpreted as? Is there any sane way to get unicode data into
docstrings for methods provided by extension modules?

I'm hoping to avoid writing a Python wrapper module if at all possible,
especially since that'll make it impossible to use the Qt translation
system the rest of the app is translated with.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top