Message292859
| Author |
serhiy.storchaka |
| Recipients |
berker.peksag, mark.dickinson, martin.panter, meador.inge, r.david.murray, serhiy.storchaka, xiang.zhang |
| Date |
2017年05月03日.08:01:44 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1493798504.28.0.365442040919.issue30246@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
"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"). The similar issue was discussed some time ago, but I don't remember what module was discussed and who participated in that discussion. |
|