summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-25 17:36:04 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-25 17:36:04 (GMT)
commit321251567e4fcbaa3a76f174e77980a3d76368ce (patch)
tree9823fae9504b361636cf65fa4432521ff8e9e4b1 /Misc
parent271b7e1abbec121daf76136827611e314f153339 (diff)
downloadcpython-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/NEWS5
1 files changed, 3 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index ccea907..97ddc59 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.