Message89725
The problem here is not the bytes object: it is correctly coerced to a
string.
The problem is the binary stream, which cannot accept strings.
We could maybe detect common errors and add a check at the beginning of
the print() function? something like
if isinstance(file, (BufferedWriter, RawIOBase)):
raise ValueError("file should be a text stream") |
|
Date |
User |
Action |
Args |
2009-06-26 10:56:28 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, georg.brandl, r.david.murray |
2009-06-26 10:56:28 | amaury.forgeotdarc | set | messageid: <1246013788.2.0.143113245857.issue6304@psf.upfronthosting.co.za> |
2009-06-26 10:56:26 | amaury.forgeotdarc | link | issue6304 messages |
2009-06-26 10:56:25 | amaury.forgeotdarc | create | |
|