[Python-checkins] cpython: whatsnew: pprint's compact option.
r.david.murray
python-checkins at python.org
Fri Feb 28 00:12:07 CET 2014
http://hg.python.org/cpython/rev/60a65b229119
changeset: 89410:60a65b229119
user: R David Murray <rdmurray at bitdance.com>
date: Wed Feb 26 09:51:58 2014 -0500
summary:
whatsnew: pprint's compact option.
files:
Doc/whatsnew/3.4.rst | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -1043,11 +1043,15 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list