Unicode docstrings in PyMethodDef?

"Martin v. Löwis" martin at v.loewis.de
Fri Dec 10 18:38:31 EST 2004


Craig Ringer wrote:
  > For the use of anybody asking the same question later: There doesn't
> appear to be a nice way to make docstrings unicode, or not one I could
> find.

I don't know whether you'ld consider it "nice": you need to put an
__doc__ attribute into the function object. There is currently no C
API involving char* to do so, so it might not be that nice.

Regards,
Martin



More information about the Python-list mailing list