]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 14 Oct 2018 21:02:57 +0000 (00:02 +0300)
committerGitHub <noreply@github.com>
Sun, 14 Oct 2018 21:02:57 +0000 (00:02 +0300)
commite890421e334ccf0c000c6b29c4a521d86cd12f47
tree17b21008d8c8faf50ca3d512e670c9a71aab4318
parentde2aea0ff02fa9486365ce9d215bef150fae3a0b
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.
Lib/test/test_bytes.py
Misc/NEWS.d/next/Core and Builtins/2018-10-13-22-24-19.bpo-34974.7LgTc2.rst [new file with mode: 0644]
Objects/bytearrayobject.c
Objects/bytesobject.c