[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker ___ __

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset fa82dda1012b406a7091587fc65384ce11528346 by Xiang Zhang in branch '3.6': [3.6] bpo-30246: fix several error messages which only mention bytes in struct (#3561) https://github.com/python/cpython/commit/fa82dda1012b406a7091587fc65384ce11528346 -

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- keywords: +patch pull_requests: +3552 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c3e97d9d984130d1c2aceedc4dfcd603b3162688 by Xiang Zhang in branch 'master': bpo-30246: fix several error messages which only mention bytes in struct (#1421) https://github.com/python/cpython/commit/c3e97d9d984130d1c2aceedc4dfcd603b3162688 -

[issue30246] fix several error messages in struct

2017-09-13 Thread Martin Panter
Martin Panter added the comment: FWIW a similar change to the Struct constructor message was also proposed in Issue 19985. -- ___ Python tracker ___ ___

[issue30246] fix several error messages in struct

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "unpack requires a bytes-like object of length %zd" is not correct too. array.array('i', [1, 2, 3]) has length 3, but Struct('3b').unpack doesn't accept it. The more correct error message is "unpack requires an object containing %zd bytes" (or "a buffer"). T

[issue30246] fix several error messages in struct

2017-05-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1527 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30246] fix several error messages in struct

2017-05-03 Thread Xiang Zhang
New submission from Xiang Zhang: There are several error messages only mention bytes. But they may also accept string or other bytes-like objects. -- components: Library (Lib) messages: 292854 nosy: xiang.zhang priority: normal severity: normal stage: patch review status: open title: fi