summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next
diff options
context:
space:
mode:
authorsblondon <sblondon@users.noreply.github.com>2021-03-24 08:23:20 (GMT)
committerGitHub <noreply@github.com>2021-03-24 08:23:20 (GMT)
commit3ba3d513b1e3c63d09cb798b982a9e6c369cea4c (patch)
tree22b40601f7e0464896a42a82bf7146b943830866 /Misc/NEWS.d/next
parenta02683ac38183fa3a45c32319dfd329c5e622f0e (diff)
downloadcpython-3ba3d513b1e3c63d09cb798b982a9e6c369cea4c.zip
cpython-3ba3d513b1e3c63d09cb798b982a9e6c369cea4c.tar.gz
cpython-3ba3d513b1e3c63d09cb798b982a9e6c369cea4c.tar.bz2
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).
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r--Misc/NEWS.d/next/Library/2021-03-14-21-47-28.bpo-42914.9U1o33.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-03-14-21-47-28.bpo-42914.9U1o33.rst b/Misc/NEWS.d/next/Library/2021-03-14-21-47-28.bpo-42914.9U1o33.rst
new file mode 100644
index 0000000..ae6ef2f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-03-14-21-47-28.bpo-42914.9U1o33.rst
@@ -0,0 +1,3 @@
+:func:`pprint.pprint` gains a new boolean ``underscore_numbers`` optional
+argument to emit integers with thousands separated by an underscore character
+for improved readability (for example ``1_000_000`` instead of ``1000000``).