Serhiy Storchaka added the comment:

The purpose of pprint.pprint() is to produce human-readable output. In this 
case some output is better than nothing. It isn't designed to be parseable by 
other programs, because sometimes it is even less accurate than the result of 
repr() (pprint() truncates long reprs and losses information for dict 
subclasses). Also result of pprint() can be changed from version to version 
(e.g. issue17150). The main source of non-ASCII characters is string reprs and 
for them the backslashreplace error handler doesn't lose information. And 
pprint.pprint() is mainly used for screen output too.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19100>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to