]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495)
authorBenjamin Peterson <benjamin@python.org>
Tue, 12 Sep 2017 06:08:49 +0000 (23:08 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2017 06:08:49 +0000 (23:08 -0700)
commitcb356c2ecc0528d47fee2b9f4b32da4fcfb48b3a
treeae90d2a83114d93250692df87b5c811488e8e1a7
parent99b941b420d63027654dc6722f1648a8f36d2925
[3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495)

This undoes a853a8ba7850381d49b284295dd6f0dc491dbe44 except for the pytime.c
parts. We want to continue to allow IEEE 754 doubles larger than FLT_MAX to be
rounded into finite floats. Tests were added to very this behavior.
(cherry picked from commit 2bb69a5b4e7f96cb35d1b28aa7b7b3974b351f59)
Lib/test/test_float.py
Lib/test/test_getargs2.py
Objects/floatobject.c
Python/getargs.c