]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42914: add a pprint underscore_numbers option (GH-24864)
authorsblondon <sblondon@users.noreply.github.com>
Wed, 24 Mar 2021 08:23:20 +0000 (09:23 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Mar 2021 08:23:20 +0000 (01:23 -0700)
commit3ba3d513b1e3c63d09cb798b982a9e6c369cea4c
tree22b40601f7e0464896a42a82bf7146b943830866
parenta02683ac38183fa3a45c32319dfd329c5e622f0e
bpo-42914: add a pprint underscore_numbers option (GH-24864)

pprint() gains a new boolean underscore_numbers kwarg to emit
integers with thousands separated by an underscore character
for improved readability (for example 1_000_000 instead of 1000000).
Doc/library/pprint.rst
Lib/pprint.py
Lib/test/test_pprint.py
Misc/NEWS.d/next/Library/2021-03-14-21-47-28.bpo-42914.9U1o33.rst [new file with mode: 0644]