[issue32103] Inconsistent text at TypeError in concatenation

2017-11-21 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

This is a duplicate of issue29116.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Make str and bytes error messages on concatenation conform with 
other sequences

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32103] Inconsistent text at TypeError in concatenation

2017-11-21 Thread Carl

New submission from Carl :

>>> a = b"jan"
>>> b = "jan"
>>> a+b
Traceback (most recent call last):
  File "", line 1, in 
TypeError: can't concat str to bytes
>>> b+a
Traceback (most recent call last):
  File "", line 1, in 
TypeError: must be str, not bytes
>>>

IMHO The latter TypeError text should be "TypeError: can't concat bytes to str"

--
components: Interpreter Core
messages: 306642
nosy: wolfc01
priority: normal
severity: normal
status: open
title: Inconsistent text at TypeError in concatenation
type: enhancement
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com