[issue34984] Improve error messages in bytes and bytearray constructors

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

[issue34984] Improve error messages in bytes and bytearray constructors

2018-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2c2044e789875ea736ec42e216fdbe61816fbe28 by Serhiy Storchaka in branch 'master': bpo-34984: Improve error messages for bytes and bytearray constructors. (GH-9874) https://github.com/python/cpython/commit/2c2044e789875ea736ec42e216fdbe61816fbe

[issue34984] Improve error messages in bytes and bytearray constructors

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

[issue34984] Improve error messages in bytes and bytearray constructors

2018-10-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR improves error messages in bytes and bytearray constructors. 1. When pass only encoding or errors to the bytes or bytearray constructor, it raises a TypeError with the message "encoding or errors without sequence argument". But the requir