summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2014-01-05 14:50:30 (GMT)
committerEthan Furman <ethan@stoneleaf.us>2014-01-05 14:50:30 (GMT)
commitdf3ed242c07ac9d0d46faa89a4705bd6acb3dd68 (patch)
tree87d790e70c68ff68f865a37a0ecd6720580a089d /Misc
parent6d2ea213372bf585e797777824c6ed2209dc22c0 (diff)
downloadcpython-df3ed242c07ac9d0d46faa89a4705bd6acb3dd68.zip
cpython-df3ed242c07ac9d0d46faa89a4705bd6acb3dd68.tar.gz
cpython-df3ed242c07ac9d0d46faa89a4705bd6acb3dd68.tar.bz2
Issue19995: %o, %x, %X now only accept ints
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d512d5d..2857633 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -18,6 +18,10 @@ Core and Builtins
- Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
argument is not in range [0; 255].
+- Issue #19995: %c, %o, %x, and %X now raise TypeError on non-integer input;
+ reworded docs to clarify that an integer type should define both __int__
+ and __index__.
+
- Issue #19787: PyThread_set_key_value() now always set the value. In Python
3.3, the function did nothing if the key already exists (if the current value
is a non-NULL pointer).