Message261755
> Well, it's not what format() is doing now, using str()? :)
Hum, are you sure that you tried Python 3, and not Python 2?
str(bytes) on Python 3 is well defined:
>>> print(str(b'hello'))
b'hello'
>>> print(str('h\xe9llo'.encode('utf8')))
b'h\xc3\xa9llo'
I'm not sure that you expect the b'...' format. Non-ASCII characters are escaped as \xHH format. |
|
Date |
User |
Action |
Args |
2016-03-14 14:33:28 | vstinner | set | recipients:
+ vstinner, marco.sulla |
2016-03-14 14:33:28 | vstinner | set | messageid: <1457966008.38.0.44915906515.issue26555@psf.upfronthosting.co.za> |
2016-03-14 14:33:28 | vstinner | link | issue26555 messages |
2016-03-14 14:33:28 | vstinner | create | |
|