Issue 32103: Inconsistent text at TypeError in concatenation
Created on 2017-11-21 14:13 by wolfc01, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg306642 - (view) | Author: Carl (wolfc01) | Date: 2017-11-21 14:13 | |
>>> 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" |
|||
| msg306668 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2017-11-21 16:57 | |
This is a duplicate of issue29116. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:54 | admin | set | github: 76284 |
| 2017-11-21 16:57:58 | serhiy.storchaka | set | status: open -> closed superseder: Make str and bytes error messages on concatenation conform with other sequences nosy:
+ serhiy.storchaka |
| 2017-11-21 14:13:55 | wolfc01 | create | |
