summaryrefslogtreecommitdiffstats
path: root/Lib/pprint.py
diff options
context:
space:
mode:
authorSequew <88668176+KrySeyt@users.noreply.github.com>2023-12-13 12:04:17 (GMT)
committerGitHub <noreply@github.com>2023-12-13 12:04:17 (GMT)
commit2a3c37c273762d2dc40bfdae3899cb09b7c88d4a (patch)
tree6c475369eeb10dc414f4f74ea2474c68dd605515 /Lib/pprint.py
parent428c9812cb4ff3521e5904719224fe63fba5370a (diff)
downloadcpython-2a3c37c273762d2dc40bfdae3899cb09b7c88d4a.zip
cpython-2a3c37c273762d2dc40bfdae3899cb09b7c88d4a.tar.gz
cpython-2a3c37c273762d2dc40bfdae3899cb09b7c88d4a.tar.bz2
[pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter (#112963)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Diffstat (limited to 'Lib/pprint.py')
-rw-r--r--Lib/pprint.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py
index 34ed126..9314701 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)