Message261742
> I would that the format minilanguage will convert bytes to string properly.
Sorry, nope, Python 3 doesn't guess the encoding of byte strings anymore. You have to decode manually. Example:
"Hello {}".format(b"World".decode('ascii'))
Or format to bytes:
b"Hello {}".format(b"World")
It's not a bug. It's a feature. |
|
Date |
User |
Action |
Args |
2016-03-14 10:35:51 | vstinner | set | recipients:
+ vstinner, marco.sulla |
2016-03-14 10:35:51 | vstinner | set | messageid: <1457951751.76.0.846872215369.issue26555@psf.upfronthosting.co.za> |
2016-03-14 10:35:51 | vstinner | link | issue26555 messages |
2016-03-14 10:35:51 | vstinner | create | |
|