Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update peps/pep-0813.rst
Co-authored-by: Carol Willing <[email protected]>
  • Loading branch information
warsaw and willingc authored Nov 12, 2025
commit 686fc4dae50ea23ce7fe37320af5267f640ef713
2 changes: 1 addition & 1 deletion peps/pep-0813.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ There are several parts to this proposal.

Classes can implement a new dunder method, ``__pprint__()`` which if present, generates the pretty printed
representation of their instances. This augments ``__repr__()`` which, prior to this proposal, was the only
method used to generate a pretty representation of the object. Since object reprs provide functionality
method used to generate a custom representation of the object. Since object reprs provide functionality
distinct from pretty printing, some classes may want more control over their pretty display. The
:py:class:`python:pprint.PrettyPrinter` class is modified to respect an object's ``__pprint__()`` method if
present.
Expand Down
Loading