summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2020-05-29 13:23:57 (GMT)
committerGitHub <noreply@github.com>2020-05-29 13:23:57 (GMT)
commit895c9c1d438367722f74f437fda96767d770662b (patch)
tree8b4a46c98dda92716458b5d2f24ea907b736e577 /Misc
parent28316422124206f63ddd4b91f2e19c54b6e9cd9d (diff)
downloadcpython-895c9c1d438367722f74f437fda96767d770662b.zip
cpython-895c9c1d438367722f74f437fda96767d770662b.tar.gz
cpython-895c9c1d438367722f74f437fda96767d770662b.tar.bz2
bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435)
* Fix failure of _Py_dg_dtoa to remove trailing zeros * Add regression test and news entry * Add explanation about why it's safe to strip trailing zeros * Make code safer, clean up comments, add change note at top of file * Nitpick: avoid implicit int-to-float conversion in tests
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-05-26-17-43-58.bpo-40780.3Ckdgm.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-26-17-43-58.bpo-40780.3Ckdgm.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-26-17-43-58.bpo-40780.3Ckdgm.rst
new file mode 100644
index 0000000..ed6020c
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-26-17-43-58.bpo-40780.3Ckdgm.rst
@@ -0,0 +1,2 @@
+Fix a corner case where g-style string formatting of a float failed to
+remove trailing zeros.