Commit 39d6413b authored by R David Murray's avatar R David Murray

whatsnew: pprint's compact option.

parent 864b071f
......@@ -1043,11 +1043,15 @@ Catucci in :issue:`4473`.)
pprint
------
The :mod:`pprint` module now supports *compact* mode for formatting long
sequences (:issue:`19132`).
The :mod:`pprint` module's :class:`~pprint.PrettyPrinter` class and its
:func:`~pprint.pformat`, and :func:`~pprint.pprint` functions have a new
option, *compact*, that controls how the output is formatted. Currently
setting *compact* to ``True`` means that sequences will be printed with as many
sequence elements as will fit within *width* on each (indented) line.
(Contributed by Serhiy Storchaka in :issue:`19132`.)
Long strings are now wrapped using Python's normal line continuation
syntax (Contributed by Antoine Pitrou in :issue:`17150`.)
syntax. (Contributed by Antoine Pitrou in :issue:`17150`).
pty
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment