[issue9198] Should repr() print unicode characters outside the BMP?

Amaury Forgeot d'Arc report at bugs.python.org
Thu Jul 8 13:02:23 CEST 2010

Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

> A more accurate approach would be to actually try to encode the string
> and escape only the chars that can't be encoded

This is already the case with sys.stderr, it uses the "backslashreplace" error handler. Do you suggest the same for sys.stdout?


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list