[issue36705] Unexpected Behaviour of pprint.pprint

Eric V. Smith report at bugs.python.org
Tue Apr 23 09:17:37 EDT 2019


Eric V. Smith <eric at trueblade.com> added the comment:

pprint.pprint is not designed to be a drop-in replacement for print. At this point, we cannot break existing code to change how pprint works.

I suggest you make a pprint.pprint wrapper that does what you want, or maybe subclass pprint.PrettyPrinter.

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36705>
_______________________________________


More information about the Python-bugs-list mailing list