[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'
Eric Smith
report at bugs.python.org
Thu Jan 7 03:48:38 CET 2010
Eric Smith <eric at trueblade.com> added the comment:
Shouldn't it work the same as it does for integers?
>>> u'%c' % 0x7f
u'\x7f'
>>> u'%c' % '\x7f'
u'\x7f'
>>> u'%c' % 0x80
u'\x80'
>>> u'%c' % '\x80'
u'\uff80'
That would imply to me it shouldn't be an error, it should just return u'\x80'.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7649>
_______________________________________
More information about the Python-bugs-list
mailing list