diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-04-22 10:34:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 10:34:48 (GMT) |
commit | b1e5f2746d8528308888c18e2d91dcc6b2923081 (patch) | |
tree | ac365a17843aa9b95bc1ede6ea3f9eee96f994c1 /Doc | |
parent | 9ddaf75a4c750bce0602f2274c645cffdd916274 (diff) | |
download | cpython-b1e5f2746d8528308888c18e2d91dcc6b2923081.zip cpython-b1e5f2746d8528308888c18e2d91dcc6b2923081.tar.gz cpython-b1e5f2746d8528308888c18e2d91dcc6b2923081.tar.bz2 |
[3.12] gh-115986 Improve pprint documentation accuracy (GH-117403) (#118146)
(cherry picked from commit ceb6038b053c403bed3ca3a8bd17b7e3fc9aab7d)
Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pprint.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst index eebd270..6dfea25 100644 --- a/Doc/library/pprint.rst +++ b/Doc/library/pprint.rst @@ -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. |