Message296870
>>> b'a' + 'a'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't concat bytes to str
This error message is misleading because it is reversed: what is really happening is that we're concatenating str to bytes! When you say "attach A to B" it means B is there first and A is added to it afterwards.
That said, we can't just reverse the message (“can't concat str to bytes”), because having the message reversed compared to the code would be also misleading.
I therefore propose to use “and” (→ “can't concat bytes and str”), which makes more sense and preserve the order. |
|
Date |
User |
Action |
Args |
2017-06-26 10:13:37 | antoine.pietri | set | recipients:
+ antoine.pietri |
2017-06-26 10:13:37 | antoine.pietri | set | messageid: <1498472017.09.0.210411923746.issue30762@psf.upfronthosting.co.za> |
2017-06-26 10:13:37 | antoine.pietri | link | issue30762 messages |
2017-06-26 10:13:36 | antoine.pietri | create | |
|