summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-10-14 21:02:57 (GMT)
committerGitHub <noreply@github.com>2018-10-14 21:02:57 (GMT)
commite890421e334ccf0c000c6b29c4a521d86cd12f47 (patch)
tree17b21008d8c8faf50ca3d512e670c9a71aab4318 /Misc
parentde2aea0ff02fa9486365ce9d215bef150fae3a0b (diff)
downloadcpython-e890421e334ccf0c000c6b29c4a521d86cd12f47.zip
cpython-e890421e334ccf0c000c6b29c4a521d86cd12f47.tar.gz
cpython-e890421e334ccf0c000c6b29c4a521d86cd12f47.tar.bz2
bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852)
bytes and bytearray constructors converted unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-10-13-22-24-19.bpo-34974.7LgTc2.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-10-13-22-24-19.bpo-34974.7LgTc2.rst b/Misc/NEWS.d/next/Core and Builtins/2018-10-13-22-24-19.bpo-34974.7LgTc2.rst
new file mode 100644
index 0000000..2a7e773
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-10-13-22-24-19.bpo-34974.7LgTc2.rst
@@ -0,0 +1,3 @@
+:class:`bytes` and :class:`bytearray` constructors no longer convert
+unexpected exceptions (e.g. :exc:`MemoryError` and :exc:`KeyboardInterrupt`)
+to :exc:`TypeError`.