]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-34974: Do not replace unexpected errors in bytearray(). (GH-9852) (GH-9885)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 15 Oct 2018 05:46:16 +0000 (08:46 +0300)
committerGitHub <noreply@github.com>
Mon, 15 Oct 2018 05:46:16 +0000 (08:46 +0300)
commit43308dfc3335906cfefe9f14a44e468935f3c321
tree07ebfbd4df09a0dad776dbf99df093cde5fea4f7
parent8ba72674bdf3d49afa6b6f79ae55d8a6120e8d36
[2.7] bpo-34974: Do not replace unexpected errors in bytearray(). (GH-9852) (GH-9885)

The bytearray constructor converted unexpected exceptions
(e.g. MemoryError and KeyboardInterrupt) to TypeError.
(cherry picked from commit e890421e334ccf0c000c6b29c4a521d86cd12f47)
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