diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-02-25 17:36:04 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-02-25 17:36:04 (GMT) |
commit | 321251567e4fcbaa3a76f174e77980a3d76368ce (patch) | |
tree | 9823fae9504b361636cf65fa4432521ff8e9e4b1 /Misc | |
parent | 271b7e1abbec121daf76136827611e314f153339 (diff) | |
download | cpython-321251567e4fcbaa3a76f174e77980a3d76368ce.zip cpython-321251567e4fcbaa3a76f174e77980a3d76368ce.tar.gz cpython-321251567e4fcbaa3a76f174e77980a3d76368ce.tar.bz2 |
#7649: "u'%c' % char" now behaves like "u'%s' % char" and raises a UnicodeDecodeError if 'char' is a byte string that can't be decoded using the default encoding.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -16,8 +16,9 @@ Core and Builtins UnicodeEncodeError, UnicodeDecodeError, and UnicodeTranslateError to strings. -- Issue #7649: Fix u'%c' % char for character in range 0x80..0xFF, raise an - UnicodeDecodeError. +- Issue #7649: "u'%c' % char" now behaves like "u'%s' % char" and raises a + UnicodeDecodeError if 'char' is a byte string that can't be decoded using + the default encoding. - Issue #6902: Fix problem with built-in types format incorrectly with 0 padding. |