From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 13 Dec 2023 12:38:07 +0000 (+0100) Subject: [3.12] [pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter... X-Git-Tag: v3.12.2~331 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6601962530d7d5a951aaf0d2357462e4c2e04e68;p=thirdparty%2FPython%2Fcpython.git [3.12] [pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter (GH-112963) (#113053) [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 --- diff --git a/Lib/pprint.py b/Lib/pprint.py index 34ed12637e22..9314701db340 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py @@ -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)