]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix PyString_Format() so that '%c' % u'a' returns u'a'
authorWalter Dörwald <walter@livinglogic.de>
Mon, 31 Mar 2003 18:07:50 +0000 (18:07 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 31 Mar 2003 18:07:50 +0000 (18:07 +0000)
commit43440a621e022fbeaff24f84dcf4d5458601fedc
tree4ffebf718b3a2fef2e38d3b441975b30dde80ea6
parent2a04623ddd8c15a1d559440a5f4a63d43a3cafd7
Fix PyString_Format() so that '%c' % u'a' returns u'a'
instead of raising a TypeError. (From SF patch #710127)

Add tests to verify this is fixed.

Add various tests for '%c' % int.
Lib/test/string_tests.py
Lib/test/test_str.py
Lib/test/test_unicode.py
Misc/NEWS
Objects/stringobject.c