diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-02 18:40:21 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-02 18:40:21 (GMT) |
commit | 09bb846b0119257c38c01bb78afce7d70c0b0bdf (patch) | |
tree | b4fbf5aba5f85dc8cd014a75e2c460bd3d88e542 /Doc/library/pprint.rst | |
parent | 57d5c089662c43d091aff2266bff63190e019504 (diff) | |
download | cpython-09bb846b0119257c38c01bb78afce7d70c0b0bdf.zip cpython-09bb846b0119257c38c01bb78afce7d70c0b0bdf.tar.gz cpython-09bb846b0119257c38c01bb78afce7d70c0b0bdf.tar.bz2 |
Issue #19132: Add versionchanged tags.
Diffstat (limited to 'Doc/library/pprint.rst')
-rw-r--r-- | Doc/library/pprint.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst index ec9de43..447f8f7 100644 --- a/Doc/library/pprint.rst +++ b/Doc/library/pprint.rst @@ -49,6 +49,9 @@ The :mod:`pprint` module defines one class: will be formatted on a separate line. If *compact* is true, as many items as will fit within the *width* will be formatted on each output line. + .. versionchanged:: 3.4 + Added the *compact* parameter. + >>> import pprint >>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni'] >>> stuff.insert(0, stuff[:]) @@ -81,6 +84,9 @@ The :mod:`pprint` module also provides several shortcut functions: *width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter` constructor as formatting parameters. + .. versionchanged:: 3.4 + Added the *compact* parameter. + .. function:: pprint(object, stream=None, indent=1, width=80, depth=None, *, \ compact=False) @@ -92,6 +98,9 @@ The :mod:`pprint` module also provides several shortcut functions: within a scope). *indent*, *width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter` constructor as formatting parameters. + .. versionchanged:: 3.4 + Added the *compact* parameter. + >>> import pprint >>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni'] >>> stuff.insert(0, stuff) |