]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] [pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Dec 2023 12:38:19 +0000 (13:38 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2023 12:38:19 +0000 (12:38 +0000)
[pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter (GH-112963)
(cherry picked from commit 2a3c37c273762d2dc40bfdae3899cb09b7c88d4a)

Co-authored-by: Sequew <88668176+KrySeyt@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Lib/pprint.py

index 575688d8eb6f4a3c224dd6dd57487fcae8a91f31..d63879400478fe06f65cbfc1d4be2ba9d963d4d9 100644 (file)
@@ -128,6 +128,9 @@ class PrettyPrinter:
         sort_dicts
             If true, dict keys are sorted.
 
+        underscore_numbers
+            If true, digit groups are separated with underscores.
+
         """
         indent = int(indent)
         width = int(width)