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

Jim Fasarakis-Hilliard report at bugs.python.org
Wed Jan 11 06:02:14 EST 2017


Jim Fasarakis-Hilliard added the comment:

As I currently see this: 

 - The error message for str can be changed to the one used for other sequences 'can only concatenate str (not "type") to str'

 - The error message for arrays can be changed to use concatenate instead of append, too.

For bytes I see a conundrum, on one hand it can be changed to mention the buffer protocol which might confuse new users more than it helps them or, it can try and mention the objects that currently conform to it which might be exhaustive and long.

----------

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


More information about the Python-bugs-list mailing list