Unicode docstrings in PyMethodDef?
craig at postnewspapers.com.au
Wed Dec 8 06:43:31 CET 2004
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
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.
More information about the Python-list