summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-26 14:51:58 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-02-26 14:51:58 (GMT)
commit63f4dd5e8f7a2790c0a8174e2a9610fee717c662 (patch)
tree84afb7ba22c2d6c0bc78d33653e8d582a2449115 /Doc
parentdc9215f8828b23ed6c294f8e64342a55dcdf1e4c (diff)
downloadcpython-63f4dd5e8f7a2790c0a8174e2a9610fee717c662.zip
cpython-63f4dd5e8f7a2790c0a8174e2a9610fee717c662.tar.gz
cpython-63f4dd5e8f7a2790c0a8174e2a9610fee717c662.tar.bz2
whatsnew: pprint's compact option.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.4.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 78fa24b..7340dba 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -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