From df35d50df8099552b4e310e9df7994913cb652a9 Mon Sep 17 00:00:00 2001 From: Kerim Kabirov Date: Sun, 31 Mar 2024 14:38:54 +0200 Subject: [PATCH 1/2] Improve pprint documentation accuracy --- Doc/library/pprint.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst index eebd270a096ba5..9d1b3758a296b3 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 same name parameter defaulting to 80 characters. Dictionaries are sorted by key before the display is computed. From 5490a74363ba7f324981264809d4c154bde0ea17 Mon Sep 17 00:00:00 2001 From: Kerim Kabirov Date: Fri, 19 Apr 2024 09:04:51 +0200 Subject: [PATCH 2/2] Increase explicity Co-authored-by: Jelle Zijlstra --- Doc/library/pprint.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst index 9d1b3758a296b3..6dfea25d755f75 100644 --- a/Doc/library/pprint.rst +++ b/Doc/library/pprint.rst @@ -20,7 +20,7 @@ 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, -adjustable by the same name parameter defaulting to 80 characters. +adjustable by the *width* parameter defaulting to 80 characters. Dictionaries are sorted by key before the display is computed.