Commit 09bb846b authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #19132: Add versionchanged tags.

parent 57d5c089
...@@ -49,6 +49,9 @@ The :mod:`pprint` module defines one class: ...@@ -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 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. as will fit within the *width* will be formatted on each output line.
.. versionchanged:: 3.4
Added the *compact* parameter.
>>> import pprint >>> import pprint
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni'] >>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
>>> stuff.insert(0, stuff[:]) >>> stuff.insert(0, stuff[:])
...@@ -81,6 +84,9 @@ The :mod:`pprint` module also provides several shortcut functions: ...@@ -81,6 +84,9 @@ The :mod:`pprint` module also provides several shortcut functions:
*width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter` *width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter`
constructor as formatting parameters. constructor as formatting parameters.
.. versionchanged:: 3.4
Added the *compact* parameter.
.. function:: pprint(object, stream=None, indent=1, width=80, depth=None, *, \ .. function:: pprint(object, stream=None, indent=1, width=80, depth=None, *, \
compact=False) compact=False)
...@@ -92,6 +98,9 @@ The :mod:`pprint` module also provides several shortcut functions: ...@@ -92,6 +98,9 @@ The :mod:`pprint` module also provides several shortcut functions:
within a scope). *indent*, *width*, *depth* and *compact* will be passed within a scope). *indent*, *width*, *depth* and *compact* will be passed
to the :class:`PrettyPrinter` constructor as formatting parameters. to the :class:`PrettyPrinter` constructor as formatting parameters.
.. versionchanged:: 3.4
Added the *compact* parameter.
>>> import pprint >>> import pprint
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni'] >>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
>>> stuff.insert(0, stuff) >>> stuff.insert(0, stuff)
......
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