Serhiy Storchaka added the comment:

>   - Using PyUnicode_FromFormat() works, but then I don't know how to convert 
> the result to const char*

PyUnicode_AsUTF8()

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17792>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to