You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent text at TypeError in concatenation #76284
bpo-29116: Make str and bytes error messages on concatenation conform with other sequences
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-11-21.16:57:58.086>created_at=<Date2017-11-21.14:13:55.386>labels= ['interpreter-core', 'type-feature']
title='Inconsistent text at TypeError in concatenation'updated_at=<Date2017-11-21.16:57:58.084>user='https://github.com/wolfc01'
>>> a =b"jan"
>>> b ="jan"
>>> a+b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't concat str to bytes
>>> b+a
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: must be str, not bytes
>>>
IMHO The latter TypeError text should be "TypeError: can't concat bytes to str"
Activity
wolfc01 commentedon Nov 21, 2017
IMHO The latter TypeError text should be "TypeError: can't concat bytes to str"
serhiy-storchaka commentedon Nov 21, 2017
This is a duplicate of bpo-29116.