[issue9198] Should repr() print unicode characters outside the BMP?
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Jul 8 13:11:47 CEST 2010
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
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".'''
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list