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[:])
*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)
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)