[issue41312] add !p to pprint.pformat() in str.format() an f-strings
Charles Machalow
report at bugs.python.org
Thu Jul 16 21:17:19 EDT 2020
Charles Machalow <csm10495 at gmail.com> added the comment:
One of the key things for ppformat here is to format long spanning dicts/lists to multiple lines, that look easy to read in a log. I feel as though that feature/usefulness outweigh potential indentation weirdness.
A lot of the usage would probably be towards the end of an fstring.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41312>
_______________________________________
More information about the Python-bugs-list
mailing list