Primary
pprint ⚬⃕ᵖʸ|Documentation|1st|20251021184129-00-⌔
pprint — Data pretty printer — Python 3 documentation
pprint— Data pretty printerSource code: Lib/pprint.py
The
pprintmodule provides a capability to “pretty-print” arbitrary Python data structures in a form which can be used as input to the interpreter. If the formatted structures include objects which are not fundamental Python types, the representation may not be loadable. This may be the case if objects such as files, sockets or classes are included, as well as many other objects which are not representable as Python literals.The formatted representation keeps objects on a single line if it can, and breaks them onto multiple lines if they don’t fit within the allowed width, adjustable by the width parameter defaulting to 80 characters.
Changed in version 3.9: Added support for pretty-printing
types.SimpleNamespace.Changed in version 3.10: Added support for pretty-printing
dataclasses.dataclass.Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •