Unicode docstrings in PyMethodDef?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Craig Ringer

    #1

    Unicode docstrings in PyMethodDef?

    Hi folks

    I'm currently working on a fairly well internationalis ed 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.

    --
    Craig Ringer

Working...