gh-115986 Improve pprint documentation accuracy (#117403)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Kerim Kabirov 2024-04-22 12:28:21 +02:00 committed by GitHub
parent 550483b7e6
commit ceb6038b05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.