[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'
report at bugs.python.org
Tue Feb 23 07:18:17 CET 2010
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
Indeed some comments would be helpful, I'll add them.
I also tried already to reuse 's' and extract the first char using unicode_getitem, but it returns a PyObject and anyway it's probably more expensive/complicated than calling PyString_AS_STRING again. I'll try with  and/or with PyUnicode_FromStringAndSize and make a new patch this afternoon.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list