STINNER Victor <victor.stin...@haypocalc.com> added the comment: > Since Python3 fixes the UTF-8 default encoding, it's better > to enhance PyUnicode_AsUTF8String() to cache the UTF-8 > string in the Unicode object
Right, that sounds like a great idea. Attached patch implements that: patch PyUnicode_AsUTF8String() and PyUnicode_AsEncodedString(). Does it look ok? > replace all uses of _PyUnicode_AsDefaultEncodedString() > with PyUnicode_AsUTF8String() I'm waiting for your approval of the first patch before working on the second part. ---------- Added file: http://bugs.python.org/file17595/utf8_defenc.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8923> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com