Skip to content

Commit

Permalink
[3.12] gh-115986 Improve pprint documentation accuracy (GH-117403) (#…
Browse files Browse the repository at this point in the history
…118146)

(cherry picked from commit ceb6038)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
3 people committed Apr 22, 2024
1 parent 9ddaf75 commit b1e5f27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Doc/library/pprint.rst
Expand Up @@ -19,9 +19,8 @@ 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.
Construct :class:`PrettyPrinter` objects explicitly if you need to adjust the
width constraint.
breaks them onto multiple lines if they don't fit within the allowed width,
adjustable by the *width* parameter defaulting to 80 characters.

Dictionaries are sorted by key before the display is computed.

Expand Down

0 comments on commit b1e5f27

Please sign in to comment.