]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 14 Oct 2018 21:32:03 +0000 (14:32 -0700)
committerGitHub <noreply@github.com>
Sun, 14 Oct 2018 21:32:03 +0000 (14:32 -0700)
commit08ba7eb89d5353af31ef9e66a5337abea1b676ef
tree5e9ec56963b8e0fc4ebe7f1b08bdf6e9aa991775
parent7c1c42b3209f1d2546daab6cd77f953eb255df6c
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.
(cherry picked from commit e890421e334ccf0c000c6b29c4a521d86cd12f47)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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