Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09bb846

Browse files
Issue #19132: Add versionchanged tags.
1 parent 57d5c08 commit 09bb846

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/library/pprint.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ The :mod:`pprint` module defines one class:
4949
will be formatted on a separate line. If *compact* is true, as many items
5050
as will fit within the *width* will be formatted on each output line.
5151

52+
.. versionchanged:: 3.4
53+
Added the *compact* parameter.
54+
5255
>>> import pprint
5356
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
5457
>>> stuff.insert(0, stuff[:])
@@ -81,6 +84,9 @@ The :mod:`pprint` module also provides several shortcut functions:
8184
*width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter`
8285
constructor as formatting parameters.
8386

87+
.. versionchanged:: 3.4
88+
Added the *compact* parameter.
89+
8490

8591
.. function:: pprint(object, stream=None, indent=1, width=80, depth=None, *, \
8692
compact=False)
@@ -92,6 +98,9 @@ The :mod:`pprint` module also provides several shortcut functions:
9298
within a scope). *indent*, *width*, *depth* and *compact* will be passed
9399
to the :class:`PrettyPrinter` constructor as formatting parameters.
94100

101+
.. versionchanged:: 3.4
102+
Added the *compact* parameter.
103+
95104
>>> import pprint
96105
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
97106
>>> stuff.insert(0, stuff)

0 commit comments

Comments
 (0)