[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 43308dfc3335906cfefe9f14a44e468935f3c321 by Serhiy Storchaka in branch '2.7': [2.7] bpo-34974: Do not replace unexpected errors in bytearray(). (GH-9852) (GH-9885) https://github.com/python/cpython/commit/43308dfc3335906cfefe9f14a44e468935f3c

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9248 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread miss-islington
miss-islington added the comment: New changeset 08ba7eb89d5353af31ef9e66a5337abea1b676ef by Miss Islington (bot) in branch '3.6': bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852) https://github.com/python/cpython/commit/08ba7eb89d5353af31ef9e66a5337abea1b676e

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread miss-islington
miss-islington added the comment: New changeset 1370832af24cc6f0f464354b9ec3ecdb343d35ce by Miss Islington (bot) in branch '3.7': bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852) https://github.com/python/cpython/commit/1370832af24cc6f0f464354b9ec3ecdb343d35c

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e890421e334ccf0c000c6b29c4a521d86cd12f47 by Serhiy Storchaka in branch 'master': bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852) https://github.com/python/cpython/commit/e890421e334ccf0c000c6b29c4a521d86cd12f

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +9241 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +9242 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +9222 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue34974] bytes and bytearray constructors replace unexpected exceptions

2018-10-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : bytes() and bytearray() replace some unexpected exceptions (including MemoryError and KeyboardInterrupt) with TypeError. 1) Exception in __index__. class X: def __index__(self): raise MemoryError `bytes(X())` results in: Traceback (most rec