Martin Panter added the comment:
I think this patch is okay.
I would have suggested “Cannot construct bytes from [. . .]” to avoid the
problem with “convert”, but this message is produced in places other than the
constructor, e.g.
>>> int.from_bytes("str", "little")
TypeError: cannot convert unicode object to bytes
----------
nosy: +martin.panter
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17339>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com