]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-115986 Improve pprint documentation accuracy (GH-117403) (#118146)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 Apr 2024 10:34:48 +0000 (12:34 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2024 10:34:48 +0000 (10:34 +0000)
(cherry picked from commit ceb6038b053c403bed3ca3a8bd17b7e3fc9aab7d)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/pprint.rst

index eebd270a096ba5f569c360700017b55715da12ac..6dfea25d755f7581b211ad757bea177338b9cc39 100644 (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.