]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35560: Remove assertion from format(float, "n") (GH-11288) (GH-23231)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Nov 2020 19:58:27 +0000 (11:58 -0800)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 19:58:27 +0000 (14:58 -0500)
commitdae5d728bc3f1d4039b64e4ec3a9036fd5d19587
treeabd107d8a4d2a1fd3217eb3b96eed5d6ade9ca78
parenta63234c49b2fbfb6f0aca32525e525ce3d43b2b4
bpo-35560: Remove assertion from format(float, "n") (GH-11288) (GH-23231)

Fix an assertion error in format() in debug build for floating point
formatting with "n" format, zero padding and small width. Release build is
not impacted. Patch by Karthikeyan Singaravelan.
(cherry picked from commit 3f7983a25a3d19779283c707fbdd5bc91b1587ef)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
Lib/test/test_float.py
Misc/NEWS.d/next/Core and Builtins/2018-12-22-22-19-51.bpo-35560.9vMWSP.rst [new file with mode: 0644]
Objects/unicodeobject.c