Message109536
The chapter "Rationale" in PEP3138 explains why sys.stdout uses "strict" encoding, when sys.stderr uses "backslashreplace".
It would be possible to use "backslashreplace" for stdout as well for interactive sessions, but the PEP also rejected this because it '''may add confusion of the kind "it works in interactive mode but not when redirecting to a file".''' |
|
Date |
User |
Action |
Args |
2010-07-08 11:11:47 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, lemburg, ezio.melotti |
2010-07-08 11:11:47 | amaury.forgeotdarc | set | messageid: <1278587507.72.0.0928296544649.issue9198@psf.upfronthosting.co.za> |
2010-07-08 11:11:46 | amaury.forgeotdarc | link | issue9198 messages |
2010-07-08 11:11:45 | amaury.forgeotdarc | create | |
|