Skip to content

Commit

Permalink
[3.11] [pprint]: Add docstring about `PrettyPrinter.underscore_number…
Browse files Browse the repository at this point in the history
…s` parameter (pythonGH-112963) (python#113052)

[pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter (pythonGH-112963)
(cherry picked from commit 2a3c37c)

Co-authored-by: Sequew <[email protected]>
Co-authored-by: Kirill Podoprigora <[email protected]>
  • Loading branch information
3 people authored Dec 13, 2023
1 parent 51858aa commit 5fd915d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/pprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ def __init__(self, indent=1, width=80, depth=None, stream=None, *,
sort_dicts
If true, dict keys are sorted.
underscore_numbers
If true, digit groups are separated with underscores.
"""
indent = int(indent)
width = int(width)
Expand Down

0 comments on commit 5fd915d

Please sign in to comment.