[issue19100] Use backslashreplace in pprint
Walter Dörwald
report at bugs.python.org
Sat Dec 14 12:49:29 CET 2013
Walter Dörwald added the comment:
sys.displayhook doesn't fail, because it uses the backslashreplace error handler, and for sys.displayhook that's OK, because it's only used for screen output and there some output is better than no output. However print and pprint.pprint might be used for output that is consumed by other programs (via pipes etc.) and IMHO in this case "Errors should never pass silently."
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19100>
_______________________________________
More information about the Python-bugs-list
mailing list