mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
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.
This commit is contained in:
parent
2a04623ddd
commit
43440a621e
5 changed files with 18 additions and 0 deletions
|
@ -34,6 +34,9 @@ Core and builtins
|
|||
unicode system with multiple active interpreters, or successive
|
||||
interpreter executions, would fail.
|
||||
|
||||
- "%c" % u"a" now returns a unicode string instead of raising a
|
||||
TypeError. See SF patch #710127.
|
||||
|
||||
Extension modules
|
||||
-----------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue