Author Jim Fasarakis-Hilliard
Recipients Jim Fasarakis-Hilliard
Date 2016-12-30.18:56:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483124211.75.0.715869443236.issue29116@psf.upfronthosting.co.za>
In-reply-to
Content
Specifically, bytes (always, from what I could find) had this error message:

    >>> b'' + ''
    TypeError: can't concat bytes to str

while str, after a change in issue26057, was made to:

    >>> '' + b''
    TypeError: must be str, not bytes

from the previous form of "TypeError: Can't convert 'bytes' object to str implicitly".

I think these could be changed to conform with what the other sequences generate and fall in line with the error messages produced for other operations.

Specifically changing them to:

    >>> b'' + ''
    TypeError: can only concatenate bytes (not 'str') to bytes

and similarly for str.

If this idea makes sense, I can attach a patch that addresses it.
History
Date User Action Args
2016-12-30 18:56:51Jim Fasarakis-Hilliardsetrecipients: + Jim Fasarakis-Hilliard
2016-12-30 18:56:51Jim Fasarakis-Hilliardsetmessageid: <1483124211.75.0.715869443236.issue29116@psf.upfronthosting.co.za>
2016-12-30 18:56:51Jim Fasarakis-Hilliardlinkissue29116 messages
2016-12-30 18:56:51Jim Fasarakis-Hilliardcreate