summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-04-02 16:37:24 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-04-02 16:37:24 (GMT)
commit44f527fea4c73038322c7c6647e20e47c2ccdd88 (patch)
treee920c6ed07d27c81c080a3fd8297dc6fd66418c2 /Misc
parent7ba256f039ff917bfa3fe6fc0f9a6abd8e922ef3 (diff)
downloadcpython-44f527fea4c73038322c7c6647e20e47c2ccdd88.zip
cpython-44f527fea4c73038322c7c6647e20e47c2ccdd88.tar.gz
cpython-44f527fea4c73038322c7c6647e20e47c2ccdd88.tar.bz2
Change formatchar(), so that u"%c" % 0xffffffff now raises
an OverflowError instead of a TypeError to be consistent with "%c" % 256. See SF patch #710127.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 2 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index fb829b9..673af1c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -35,7 +35,8 @@ Core and builtins
interpreter executions, would fail.
- "%c" % u"a" now returns a unicode string instead of raising a
- TypeError. See SF patch #710127.
+ TypeError. u"%c" % 0xffffffff now raises a OverflowError instead
+ of a TypeError to be consistent with "%c" % 256. See SF patch #710127.
Extension modules
-----------------