[issue29116] Make str and bytes error messages on concatenation conform with other sequences

Serhiy Storchaka report at bugs.python.org
Fri Jan 6 17:08:35 EST 2017


Serhiy Storchaka added the comment:

You can concatenate any object supporting the buffer protocol to bytes and bytearray.

Current error message for bytes looks awkward too, because it says "bytes to othertype" instead of "othertype to bytes".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29116>
_______________________________________


More information about the Python-bugs-list mailing list