2014-03-26 12:02 GMT+01:00 Antoine Pitrou <solip...@pitrou.net>: > Ok, I suppose it's PyUnicode_Format? :-)
I don't think that PyUnicode_Format supports %U. For PyUnicode_FromFormatV(), %U expects a Python Unicode object, whereas "%s" expects a ASCII (or latin1?) encoded byte string "const char*". For PyArg_ParseTuple, "s" accepts str and bytes and encodes str to UTF-8, whereas "U" expects str. Victor _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com