Message292398
+1 for change bytes to str. But struct.Struct() accepts both bytes and str, maybe in future buffer objects. When it gets a bytes object, converting it to a str looks unnecessary to me, and as OP said, comparison (a theoretical use case) could still fail. Could we just leave what the user passes in? bytes(bytes-like) -> bytes, str -> str. This looks more natural to me. |
|
| Date |
User |
Action |
Args |
| 2017-04-27 04:41:57 | xiang.zhang | set | recipients:
+ xiang.zhang, rhettinger, vstinner, benjamin.peterson, Arfrever, r.david.murray, zbysz, docs@python, martin.panter, serhiy.storchaka |
| 2017-04-27 04:41:57 | xiang.zhang | set | messageid: <[email protected]> |
| 2017-04-27 04:41:57 | xiang.zhang | link | issue21071 messages |
| 2017-04-27 04:41:57 | xiang.zhang | create | |
|