[issue19100] Use backslashreplace in pprint
Walter Dörwald
report at bugs.python.org
Wed Dec 11 12:42:35 CET 2013
Walter Dörwald added the comment:
This is not the fault of pprint. IMHO it doesn't make sense to fix anything here, at least not for pprint specifically. print() has the same "problem":
$ LANG= ./python -c "print('\u20ac')"
Traceback (most recent call last):
File "<string>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character '\u20ac' in position 0: ordinal not in range(128)
----------
nosy: +doerwalter
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19100>
_______________________________________
More information about the Python-bugs-list
mailing list