]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435)
authorMark Dickinson <mdickinson@enthought.com>
Fri, 29 May 2020 13:23:57 +0000 (14:23 +0100)
committerGitHub <noreply@github.com>
Fri, 29 May 2020 13:23:57 +0000 (14:23 +0100)
commit895c9c1d438367722f74f437fda96767d770662b
tree8b4a46c98dda92716458b5d2f24ea907b736e577
parent28316422124206f63ddd4b91f2e19c54b6e9cd9d
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
Lib/test/test_format.py
Misc/NEWS.d/next/Core and Builtins/2020-05-26-17-43-58.bpo-40780.3Ckdgm.rst [new file with mode: 0644]
Python/dtoa.c